-remove node_modules

-build production
This commit is contained in:
Ulf Gebhardt 2021-06-07 14:04:36 +02:00
parent 76791f72ad
commit 791d873df2
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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