build: 📌 Change from alpine
This commit is contained in:
parent
08e6beddaa
commit
9260478d9e
1 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM node:19-alpine3.16 AS builder
|
FROM node:19 AS builder
|
||||||
|
|
||||||
# Create app directory
|
# Create app directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -10,16 +10,15 @@ COPY prisma ./prisma/
|
||||||
# Install app dependencies
|
# Install app dependencies
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM node:19-alpine3.16
|
FROM node:19
|
||||||
|
|
||||||
COPY --from=builder /app/node_modules ./node_modules
|
COPY --from=builder /app/node_modules ./node_modules
|
||||||
COPY --from=builder /app/package*.json ./
|
COPY --from=builder /app/package*.json ./
|
||||||
COPY --from=builder /app/dist ./dist
|
COPY --from=builder /app/dist ./dist
|
||||||
COPY --from=builder /app/prisma ./prisma
|
COPY --from=builder /app/prisma ./prisma
|
||||||
|
|
||||||
CMD [ "npm", "run", "start:migrate:prod" ]
|
CMD [ "npm", "run", "start:migrate:prod" ]
|
||||||
|
|
Loading…
Add table
Reference in a new issue