Revert remove of '${DOCKER_WORKDIR}'

This commit is contained in:
Wolfgang Huß 2021-06-07 19:03:55 +02:00
parent 3f7d1c7bd0
commit 9894abb29a
2 changed files with 8 additions and 8 deletions

View File

@ -90,13 +90,13 @@ CMD /bin/sh -c "yarn run dev"
FROM base as production
# Copy "binary"-files from build image
COPY --from=build ./dist ./dist
COPY --from=build ${DOCKER_WORKDIR}/dist ./dist
# Copy static files
# TODO - externalize the uploads so we can copy the whole folder
COPY --from=build ./public/img/ ./public/img/
COPY --from=build ./public/providers.json ./public/providers.json
COPY --from=build ${DOCKER_WORKDIR}/public/img/ ./public/img/
COPY --from=build ${DOCKER_WORKDIR}/public/providers.json ./public/providers.json
# Copy package.json for script definitions (lock file should not be needed)
COPY --from=build ./package.json ./package.json
COPY --from=build ${DOCKER_WORKDIR}/package.json ./package.json
# Run command
CMD /bin/sh -c "yarn run start"

View File

@ -91,11 +91,11 @@ FROM base as production
# TODO - do all copying with one COPY command to have one layer
# Copy "binary"-files from build image
COPY --from=build ./.nuxt ./.nuxt
COPY --from=build ./node_modules ./node_modules
COPY --from=build ./nuxt.config.js ./nuxt.config.js
COPY --from=build ${DOCKER_WORKDIR}/.nuxt ./.nuxt
COPY --from=build ${DOCKER_WORKDIR}/node_modules ./node_modules
COPY --from=build ${DOCKER_WORKDIR}/nuxt.config.js ./nuxt.config.js
# Copy package.json for script definitions (lock file should not be needed)
COPY --from=build ./package.json ./package.json
COPY --from=build ${DOCKER_WORKDIR}/package.json ./package.json
# Run command
CMD /bin/sh -c "yarn run start"