fix: correction to Docker files

This commit is contained in:
Riccardo
2023-08-30 20:53:42 +02:00
parent 0f1f9ec7d8
commit a36daaaec3
6 changed files with 28 additions and 16 deletions

View File

@@ -1,9 +1,10 @@
# Development stage
FROM node:18-alpine3.18 as builder
FROM node:18 as builder
WORKDIR /app
COPY package*.json ./
COPY package*.json yarn.lock ./
RUN yarn install --frozen-lockfile
COPY . .
@@ -17,10 +18,10 @@ RUN apt-get update && apt-get install -y openssl
WORKDIR /app
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/yarn.lock ./
COPY --from=builder /app/build ./build
COPY --from=builder /app/prisma ./prisma
RUN yarn install --production
RUN yarn install --frozen-lockfile --production
EXPOSE 3000