summaryrefslogtreecommitdiff
path: root/sw-server/Dockerfile
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-24 20:49:46 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-24 20:49:46 +0200
commit8ae175b316afbd5c61fe49752030c429c57cdfee (patch)
treeea96cd2e8809a584712707c7a6adf31db735f477 /sw-server/Dockerfile
parentFurther simplify injection (diff)
downloadseven-wonders-8ae175b316afbd5c61fe49752030c429c57cdfee.tar.gz
seven-wonders-8ae175b316afbd5c61fe49752030c429c57cdfee.tar.bz2
seven-wonders-8ae175b316afbd5c61fe49752030c429c57cdfee.zip
Dockerize server
Diffstat (limited to 'sw-server/Dockerfile')
-rw-r--r--sw-server/Dockerfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/sw-server/Dockerfile b/sw-server/Dockerfile
new file mode 100644
index 00000000..226227b9
--- /dev/null
+++ b/sw-server/Dockerfile
@@ -0,0 +1,8 @@
+FROM openjdk:11-jre
+
+EXPOSE 8090
+
+ARG JAR_FILE=build/libs/sw-server.jar
+COPY ${JAR_FILE} app.jar
+
+ENTRYPOINT ["java", "-Dserver.port=8090", "-jar", "/app.jar"]
bgstack15