summaryrefslogtreecommitdiffstats
path: root/services/activity-spec/activity-spec-web/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'services/activity-spec/activity-spec-web/Dockerfile')
-rw-r--r--services/activity-spec/activity-spec-web/Dockerfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/services/activity-spec/activity-spec-web/Dockerfile b/services/activity-spec/activity-spec-web/Dockerfile
new file mode 100644
index 0000000000..9d8bbeaf1b
--- /dev/null
+++ b/services/activity-spec/activity-spec-web/Dockerfile
@@ -0,0 +1,24 @@
+FROM jetty:alpine
+
+EXPOSE 8080
+EXPOSE 8443
+EXPOSE 5005
+
+ARG ARTIFACT_VERSION
+
+# See https://hub.docker.com/_/jetty/
+ARG WEBAPPS_DIR=${JETTY_BASE}/webapps/
+
+COPY activity-spec-api-docs/target/activity-spec-api-docs-${ARTIFACT_VERSION}.war ${WEBAPPS_DIR}
+
+COPY activity-spec-war/target/activity-spec-war-${ARTIFACT_VERSION}.war ${WEBAPPS_DIR}
+
+COPY activity-spec-assembly/configuration.yaml .
+COPY activity-spec-assembly/start.sh .
+
+USER root
+
+RUN chown jetty:jetty start.sh
+RUN chmod 744 start.sh
+
+ENTRYPOINT ["./start.sh"] \ No newline at end of file