more dockerfile updates
This commit is contained in:
parent
1dc9d2e946
commit
7f22c4e697
11
Dockerfile
11
Dockerfile
|
@ -13,20 +13,15 @@ COPY pom.xml /build/
|
||||||
COPY core /build/core/
|
COPY core /build/core/
|
||||||
COPY web /build/web/
|
COPY web /build/web/
|
||||||
COPY settings.xml /root/.m2/settings.xml
|
COPY settings.xml /root/.m2/settings.xml
|
||||||
# COPY keypair.asc /tmp/keypair.asc
|
|
||||||
RUN rm -f /build/web/src/main/resources/config/app.env
|
RUN rm -f /build/web/src/main/resources/config/app.env
|
||||||
RUN rm -f /build/web/src/main/resources/config/*-dev.yml
|
RUN rm -f /build/web/src/main/resources/config/*-dev.yml
|
||||||
# RUN rm -f /build/web/src/main/resources/logging/*.xml
|
# RUN rm -f /build/web/src/main/resources/logging/*.xml
|
||||||
|
|
||||||
# RUN if [ "$PROFILE" = "ossrh" ]; then \
|
|
||||||
# gpg --batch --import /tmp/keypair.asc; \
|
|
||||||
# fi
|
|
||||||
|
|
||||||
WORKDIR /build/
|
WORKDIR /build/
|
||||||
COPY . .
|
|
||||||
RUN mvn -Drevision=${REVISION} -DdevProfileUrl=${DEV_PROFILE_URL} -P${PROFILE} dependency:go-offline
|
RUN mvn -Dserver.username=${CITE_MAVEN_ACCOUNT_USR} -Dserver.password=${CITE_MAVEN_ACCOUNT_PSW} -DdevProfileUrl=${DEV_PROFILE_URL} dependency:go-offline
|
||||||
# Build project
|
# Build project
|
||||||
RUN mvn -Drevision=${REVISION} -DdevProfileUrl=${DEV_PROFILE_URL} -P${PROFILE} clean package
|
RUN mvn -Dserver.username=${CITE_MAVEN_ACCOUNT_USR} -Dserver.password=${CITE_MAVEN_ACCOUNT_PSW} -DdevProfileUrl=${DEV_PROFILE_URL} clean package
|
||||||
|
|
||||||
######################################## Run Stage ########################################
|
######################################## Run Stage ########################################
|
||||||
FROM eclipse-temurin:21-jre-alpine
|
FROM eclipse-temurin:21-jre-alpine
|
||||||
|
|
Loading…
Reference in New Issue