diff options
Diffstat (limited to 'sw-server')
-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"] |