diff --git a/ws.Dockerfile b/ws.Dockerfile index ff5a4a6db31c4f2baf73337399cc9dcd1c7169d9..8b83128e4c7af4ed7f445eef59dabf08f722e4d1 100644 --- a/ws.Dockerfile +++ b/ws.Dockerfile @@ -31,6 +31,8 @@ ARG builder_workdir ARG CI_PROJECT_URL=null ARG CI_COMMIT_BRANCH=null +WORKDIR /app + COPY . . USER root @@ -48,8 +50,10 @@ ENV CONTEXT_PATH="/" ENV JAVA_OPTS="-Xms2g -Xmx8g" ENV MODELS_DIRECTORY="/model" -COPY --from=builder build/libs/nshmp-haz.jar . -COPY --from=builder nshms.yml . +WORKDIR /app + +COPY --from=builder /app/build/libs/nshmp-haz.jar . +COPY --from=builder /app/nshms.yml . VOLUME [ "${MODELS_DIRECTORY}" ]