From d561a6e8bcd78379c0a49d4291ebe33e85ee87fe Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Thu, 28 Jan 2021 11:35:26 +0100 Subject: Fix PORT variable substitution in Dockerfile Resolves: https://github.com/joffrey-bion/seven-wonders/issues/77 --- sw-server/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw-server/Dockerfile') diff --git a/sw-server/Dockerfile b/sw-server/Dockerfile index a8dd4ff6..79b2c9c4 100644 --- a/sw-server/Dockerfile +++ b/sw-server/Dockerfile @@ -9,4 +9,4 @@ ENV PORT 80 ARG JAR_FILE=build/libs/sw-server.jar COPY ${JAR_FILE} app.jar -ENTRYPOINT ["java", "-Dserver.port=$PORT", "-jar", "/app.jar"] +ENTRYPOINT ["sh", "-c", "java -Dserver.port=$PORT -jar /app.jar"] -- cgit