Skip to content

Commit

Permalink
Fix Docker workdir
Browse files Browse the repository at this point in the history
Change from Alpine to Slim


Remove Dockerignore


Remove workdir


Using Alpine again


Revert "Remove Dockerignore"

This reverts commit 05c01be.

Add simple workdir


Fix Docker workdir
  • Loading branch information
davidkopp committed Jul 30, 2019
1 parent 6b467fc commit 2378cef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM maven:3.6-jdk-8-alpine as builder
WORKDIR /workspace
WORKDIR /app

#Cache dependencies
COPY pom.xml .
Expand All @@ -11,7 +11,7 @@ RUN mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar)

FROM openjdk:8-jre-alpine
ENV JAVA_OPTS="-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"
ARG DEPENDENCY=/workspace/target/dependency
ARG DEPENDENCY=/app/target/dependency
COPY --from=builder ${DEPENDENCY}/BOOT-INF/lib /app/lib
COPY --from=builder ${DEPENDENCY}/META-INF /app/META-INF
COPY --from=builder ${DEPENDENCY}/BOOT-INF/classes /app
Expand Down

0 comments on commit 2378cef

Please sign in to comment.