update Dockerfile
This commit is contained in:
parent
b6138da7ab
commit
42af117718
|
@ -10,12 +10,11 @@ ENV server_username=$MAVEN_ACCOUNT_USR
|
||||||
ENV server_password=$MAVEN_ACCOUNT_PSW
|
ENV server_password=$MAVEN_ACCOUNT_PSW
|
||||||
|
|
||||||
COPY pom.xml /build/
|
COPY pom.xml /build/
|
||||||
#COPY data /build/data/
|
COPY core /build/core/
|
||||||
#COPY elastic /build/elastic/
|
|
||||||
#COPY logging /build/logging/
|
|
||||||
#COPY queryable /build/queryable/
|
|
||||||
COPY web /build/web/
|
COPY web /build/web/
|
||||||
RUN rm -f /build/web/src/main/resources/config/*-dev.yml
|
COPY settings.xml /root/.m2/settings.xml
|
||||||
|
RUN rm -f /build/web/src/main/resources/config/*-devel.yml
|
||||||
|
RUN rm -f /build/annotation-web/src/main/resources/logging/*.xml
|
||||||
|
|
||||||
WORKDIR /build/
|
WORKDIR /build/
|
||||||
|
|
||||||
|
@ -31,7 +30,9 @@ WORKDIR /app
|
||||||
|
|
||||||
ARG PROFILE
|
ARG PROFILE
|
||||||
ARG REVISION
|
ARG REVISION
|
||||||
|
ENV SERVER_PORT=8080
|
||||||
|
EXPOSE ${SERVER_PORT}
|
||||||
|
|
||||||
COPY --from=build-stage /build/web/target/web-${REVISION}.jar /app.jar
|
COPY --from=build-stage /build/web/target/web-${REVISION}.jar /app.jar
|
||||||
|
|
||||||
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom" ,"-Dspring.profiles.active=${PROFILE}","-jar","/app.jar"]
|
ENTRYPOINT ["java","-Dspring.config.additional-location=file:/config/","-Djava.security.egd=file:/dev/./urandom" ,"-Dspring.profiles.active=${PROFILE}","-jar","/app.jar"]
|
Loading…
Reference in New Issue