summaryrefslogtreecommitdiff
path: root/sw-server/Dockerfile
blob: a8dd4ff61c8cda1df3184c00693382bea23f6871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
FROM openjdk:15

EXPOSE 80

# Heroku uses the PORT environment variable, it ignores EXPOSE.
# This also allows to specify a custom port when running the container even outside of Heroku.
ENV PORT 80

ARG JAR_FILE=build/libs/sw-server.jar
COPY ${JAR_FILE} app.jar

ENTRYPOINT ["java", "-Dserver.port=$PORT", "-jar", "/app.jar"]
bgstack15