1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-11-08 22:31:30 +01:00

chore: remove useless runner-dependencies in Dockerfile

This commit is contained in:
Divlo 2023-01-11 17:42:29 +01:00
parent b25451e631
commit a4996c8251
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9

View File

@ -3,12 +3,6 @@ WORKDIR /usr/src/application
COPY ./package*.json ./
RUN npm install
FROM node:18.13.0 AS runner-dependencies
WORKDIR /usr/src/application
ENV NODE_ENV=production
COPY ./package*.json ./
RUN npm install --omit=dev --ignore-scripts
FROM node:18.13.0 AS builder
WORKDIR /usr/src/application
COPY --from=builder-dependencies /usr/src/application/node_modules ./node_modules