set entry point for dockerfile

This commit is contained in:
Henry Oswald 2018-03-06 10:59:40 +00:00
parent b86dc2623f
commit 5285d393a0
3 changed files with 7 additions and 3 deletions

View file

@ -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"]

View file

@ -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
View 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 "$@"