Use CMD alongside ENTRYPOINT in the Dockerfile (#3366)

This allows for runtime customization, see #3362.
This commit is contained in:
Pranas Ziaukas
2020-04-15 18:07:01 +02:00
committed by GitHub
parent 62254bb67a
commit d193673917
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -28,3 +28,4 @@ ARG COMMIT
RUN echo "{\"hash\": \"$COMMIT\"}" > .hash.json
ENTRYPOINT ["./run.sh"]
CMD ["npm", "start"]
+1 -1
View File
@@ -13,4 +13,4 @@ if [ ! -f "$DATA/configuration.yaml" ]; then
cp /app/configuration.yaml "$DATA/configuration.yaml"
fi
exec npm start
exec "$@"