summaryrefslogtreecommitdiff
path: root/sw-server
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-01-28 12:22:28 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-01-28 12:23:30 +0100
commit5bc55f75b220981906a392862f0b809b0c57e2be (patch)
tree9ae3ed2dc51bb758d46745a0e6a2a185eba0f708 /sw-server
parentSplit PR and CI/CD builds (diff)
downloadseven-wonders-5bc55f75b220981906a392862f0b809b0c57e2be.tar.gz
seven-wonders-5bc55f75b220981906a392862f0b809b0c57e2be.tar.bz2
seven-wonders-5bc55f75b220981906a392862f0b809b0c57e2be.zip
Attempt at fixing PORT substitution for heroku
Diffstat (limited to 'sw-server')
-rw-r--r--sw-server/Dockerfile4
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"]
bgstack15