From 77d7ffd9a7a33f08109a2db8a35e4094b2761c51 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Thu, 17 Mar 2022 11:34:55 +0100 Subject: refactor(web): Update Docker deployment for new web API This change updates the Docker deployment configuration for the new web API implemented in Kotlin. The new API migrates to Postgres. Furthermore, with this change, we move the Dockerfiles to their corresponding module. --- opendc-web/opendc-web-runner/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 opendc-web/opendc-web-runner/Dockerfile (limited to 'opendc-web/opendc-web-runner/Dockerfile') diff --git a/opendc-web/opendc-web-runner/Dockerfile b/opendc-web/opendc-web-runner/Dockerfile new file mode 100644 index 00000000..771ed2ed --- /dev/null +++ b/opendc-web/opendc-web-runner/Dockerfile @@ -0,0 +1,18 @@ +FROM openjdk:17-slim +MAINTAINER OpenDC Maintainers + +# Obtain (cache) Gradle wrapper +COPY gradlew /app/ +COPY gradle /app/gradle +WORKDIR /app +RUN ./gradlew --version + +# Build project +COPY ./ /app/ +RUN ./gradlew --no-daemon :installDist + +FROM openjdk:17-slim +COPY --from=0 /app/build/install /opt/ +COPY --from=0 /app/traces /opt/opendc/traces +WORKDIR /opt/opendc +CMD bin/opendc-web-runner -- cgit v1.2.3