From ed6e413ae31387ee32ea25f1fd37555c776e3504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20BENO=C3=8ET?= Date: Fri, 3 Jan 2025 23:22:55 +0100 Subject: [PATCH] chore: only copy actual source code to the builder container --- docker/Dockerfile.application | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile.application b/docker/Dockerfile.application index 2fe7c6c..437c29e 100644 --- a/docker/Dockerfile.application +++ b/docker/Dockerfile.application @@ -3,7 +3,11 @@ ENV BUILD_UID=1000 ENV BUILD=/src ENV MAVEN_HOME=/var/maven RUN mkdir -p $MAVEN_HOME && chown $BUILD_UID $MAVEN_HOME -ADD --chown=$BUILD_UID:$BUILD_UID .. $BUILD +ADD --chown=$BUILD_UID:$BUILD_UID ../legacyworlds-server $BUILD/legacyworlds-server +ADD --chown=$BUILD_UID:$BUILD_UID ../legacyworlds-session $BUILD/legacyworlds-session +ADD --chown=$BUILD_UID:$BUILD_UID ../legacyworlds-utils $BUILD/legacyworlds-utils +ADD --chown=$BUILD_UID:$BUILD_UID ../legacyworlds-web $BUILD/legacyworlds-web +ADD --chown=$BUILD_UID:$BUILD_UID pom.xml $BUILD USER $BUILD_UID WORKDIR $BUILD RUN --mount=type=cache,target=$MAVEN_HOME/.m2,uid=$BUILD_UID \