summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2022-05-15 15:15:43 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2022-05-15 15:15:43 +0200
commitcbff4835536f4f1418880ac0ddae75beb0009875 (patch)
tree219974fcd667e51bc09278bc2934a1288436a98d
parentb90ba7977e57214565678cd1e528bacf64f1a26d (diff)
build(web/runner): Reduce build steps for Docker image
This change updates the Dockerfile for the web runner to reduce the number of build steps necessary to build the web runner. Previously, the build would also include/build the web API which is not used in the image.
-rw-r--r--opendc-web/opendc-web-runner/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/opendc-web/opendc-web-runner/Dockerfile b/opendc-web/opendc-web-runner/Dockerfile
index 771ed2ed..b72f8a7f 100644
--- a/opendc-web/opendc-web-runner/Dockerfile
+++ b/opendc-web/opendc-web-runner/Dockerfile
@@ -9,10 +9,10 @@ RUN ./gradlew --version
# Build project
COPY ./ /app/
-RUN ./gradlew --no-daemon :installDist
+RUN ./gradlew --no-daemon :opendc-web:opendc-web-runner:installDist
FROM openjdk:17-slim
-COPY --from=0 /app/build/install /opt/
+COPY --from=0 /app/opendc-web/opendc-web-runner/build/install /opt/
COPY --from=0 /app/traces /opt/opendc/traces
WORKDIR /opt/opendc
CMD bin/opendc-web-runner