Skip to content

Commit

Permalink
Renamed app to ehrbase.jar
Browse files Browse the repository at this point in the history
  • Loading branch information
wlad committed Sep 13, 2020
1 parent abe138c commit 783e47e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ RUN su - postgres -c "pg_ctl -D ${PGDATA} -w start" \
RUN ls -la
RUN EHRBASE_VERSION=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive exec:exec) \
&& echo ${EHRBASE_VERSION} > /tmp/ehrbase_version \
&& cp application/target/application-${EHRBASE_VERSION}.jar /tmp/app.jar
&& cp application/target/application-${EHRBASE_VERSION}.jar /tmp/ehrbase.jar



# FINAL IMAGE WITH JRE AND JAR ONLY
FROM openjdk:11-jre-slim AS pusher
# WORKDIR /ehrbase
COPY --from=builder /tmp/app.jar .
COPY --from=builder /tmp/ehrbase.jar .
COPY --from=builder /tmp/ehrbase_version .
COPY ./.docker_scripts/docker-entrypoint.sh .
RUN chmod +x ./docker-entrypoint.sh
Expand All @@ -152,5 +152,5 @@ ENV SYSTEM_NAME=$SYSTEM_NAME
ENV SECURITY_AUTHTYPE=$SECURITY_AUTHTYPE

EXPOSE 8080
# CMD ["java", "-Dspring.profiles.active=docker", "-jar", "/ehrbase/app.jar"]
# CMD ["java", "-Dspring.profiles.active=docker", "-jar", "/ehrbase/ehrbase.jar"]
CMD ./docker-entrypoint.sh

0 comments on commit 783e47e

Please sign in to comment.