chore: only copy actual source code to the builder container
This commit is contained in:
parent
1ae7dbe936
commit
ed6e413ae3
1 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,11 @@ ENV BUILD_UID=1000
|
||||||
ENV BUILD=/src
|
ENV BUILD=/src
|
||||||
ENV MAVEN_HOME=/var/maven
|
ENV MAVEN_HOME=/var/maven
|
||||||
RUN mkdir -p $MAVEN_HOME && chown $BUILD_UID $MAVEN_HOME
|
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
|
USER $BUILD_UID
|
||||||
WORKDIR $BUILD
|
WORKDIR $BUILD
|
||||||
RUN --mount=type=cache,target=$MAVEN_HOME/.m2,uid=$BUILD_UID \
|
RUN --mount=type=cache,target=$MAVEN_HOME/.m2,uid=$BUILD_UID \
|
||||||
|
|
Loading…
Add table
Reference in a new issue