diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-01-28 12:22:28 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-01-28 12:23:30 +0100 |
commit | 5bc55f75b220981906a392862f0b809b0c57e2be (patch) | |
tree | 9ae3ed2dc51bb758d46745a0e6a2a185eba0f708 | |
parent | Split PR and CI/CD builds (diff) | |
download | seven-wonders-5bc55f75b220981906a392862f0b809b0c57e2be.tar.gz seven-wonders-5bc55f75b220981906a392862f0b809b0c57e2be.tar.bz2 seven-wonders-5bc55f75b220981906a392862f0b809b0c57e2be.zip |
Attempt at fixing PORT substitution for heroku
-rw-r--r-- | sw-server/Dockerfile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw-server/Dockerfile b/sw-server/Dockerfile index 79b2c9c4..6d93473e 100644 --- a/sw-server/Dockerfile +++ b/sw-server/Dockerfile @@ -9,4 +9,6 @@ ENV PORT 80 ARG JAR_FILE=build/libs/sw-server.jar COPY ${JAR_FILE} app.jar -ENTRYPOINT ["sh", "-c", "java -Dserver.port=$PORT -jar /app.jar"] +# We need sh to perform the substitution of $PORT +# We cannot use ENTRYPOINT because Heroku escapes the $ in ENTRYPOINT, so CMD it is +CMD ["sh", "-c", "java -Dserver.port=$PORT -jar /app.jar"] |