diff --git a/backend/Dockerfile b/backend/Dockerfile index 9c1561ac9..85fdd3957 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -72,7 +72,7 @@ COPY . . FROM code as build # yarn install -RUN yarn install --production=false --frozen-lockfile --non-interactive +RUN yarn install --production=true --frozen-lockfile --non-interactive # yarn build RUN yarn run build @@ -91,8 +91,8 @@ FROM base as production # Copy "binary"-files from build image COPY --from=build ${DOCKER_WORKDIR}/dist ./dist -COPY --from=build ${DOCKER_WORKDIR}/node_modules ./node_modules -# Copy static files # Wolle comment overfluid here? +# COPY --from=build ${DOCKER_WORKDIR}/node_modules ./node_modules +# Copy static files # TODO - externalize the uploads so we can copy the whole folder COPY --from=build ${DOCKER_WORKDIR}/public/img/ ./public/img/ COPY --from=build ${DOCKER_WORKDIR}/public/providers.json ./public/providers.json diff --git a/webapp/Dockerfile b/webapp/Dockerfile index a086a4b2a..670f577b9 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -72,7 +72,7 @@ COPY . . FROM code as build # yarn install -RUN yarn install --production=false --frozen-lockfile --non-interactive +RUN yarn install --production=true --frozen-lockfile --non-interactive # yarn build RUN yarn run build @@ -92,7 +92,7 @@ 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 ${DOCKER_WORKDIR}/.nuxt ./.nuxt -COPY --from=build ${DOCKER_WORKDIR}/node_modules ./node_modules +#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 seems not be needed anymore for the new rebranding diff --git a/webapp/Dockerfile.maintenance b/webapp/Dockerfile.maintenance index dcc06ad61..ce3b43d88 100644 --- a/webapp/Dockerfile.maintenance +++ b/webapp/Dockerfile.maintenance @@ -54,7 +54,7 @@ FROM base as code COPY package.json yarn.lock ./ # yarn install -RUN yarn install --production=false --frozen-lockfile --non-interactive +RUN yarn install --production=true --frozen-lockfile --non-interactive COPY assets assets COPY components/LocaleSwitch/ components/LocaleSwitch