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