start fixing frontend docker file for production

This commit is contained in:
Ulf Gebhardt 2021-03-13 17:14:57 +01:00
parent 874db6b8fe
commit 84d07d4353
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -81,9 +81,9 @@ CMD /bin/sh -c "yarn run dev"
FROM base as production
# Copy "binary"-files from build image
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 --from=build ${DOCKER_WORKDIR}/dist ./dist
#COPY --from=build ${DOCKER_WORKDIR}/node_modules ./node_modules
#COPY --from=build ${DOCKER_WORKDIR}/nuxt.config.js ./nuxt.config.js
# Copy static files
# TODO - this should be one Folder containign all stuff needed to be copied
#COPY --from=build ${DOCKER_WORKDIR}/constants ./constants