mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
set entry point for dockerfile
This commit is contained in:
parent
b86dc2623f
commit
5285d393a0
3 changed files with 7 additions and 3 deletions
|
@ -23,5 +23,4 @@ RUN useradd --user-group --create-home --home-dir /app --shell /bin/false app
|
|||
|
||||
RUN [ -e ./install_deps.sh ] && ./install_deps.sh
|
||||
|
||||
# USER app
|
||||
CMD ["node","app.js"]
|
||||
ENTRYPOINT ["/bin/sh", "entrypoint.sh"]
|
||||
|
|
|
@ -21,7 +21,7 @@ services:
|
|||
extends:
|
||||
file: docker-compose-config.yml
|
||||
service: dev
|
||||
entrypoint: npm run test:acceptance
|
||||
command: npm run test:acceptance
|
||||
|
||||
redis:
|
||||
image: redis
|
||||
|
|
5
services/clsi/entrypoint.sh
Executable file
5
services/clsi/entrypoint.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Changing permissions of /var/run/docker.sock for sibling containers"
|
||||
chown root:docker /var/run/docker.sock
|
||||
exec runuser -u app "$@"
|
Loading…
Reference in a new issue