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
|
||||
|
||||
COPY pom.xml /build/
|
||||
#COPY data /build/data/
|
||||
#COPY elastic /build/elastic/
|
||||
#COPY logging /build/logging/
|
||||
#COPY queryable /build/queryable/
|
||||
COPY core /build/core/
|
||||
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/
|
||||
|
||||
|
@ -31,7 +30,9 @@ WORKDIR /app
|
|||
|
||||
ARG PROFILE
|
||||
ARG REVISION
|
||||
ENV SERVER_PORT=8080
|
||||
EXPOSE ${SERVER_PORT}
|
||||
|
||||
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