17 lines
281 B
Text
17 lines
281 B
Text
|
#Build stage
|
||
|
FROM node:18-alpine AS build
|
||
|
WORKDIR /app
|
||
|
COPY package*.json .
|
||
|
RUN npm ci
|
||
|
COPY . .
|
||
|
RUN npm run build
|
||
|
|
||
|
#Prod stage
|
||
|
FROM node:18-alpine AS production
|
||
|
WORKDIR /app
|
||
|
COPY package*.json .
|
||
|
RUN npm ci --omit=dev
|
||
|
COPY --from=build /app/dist ./dist
|
||
|
|
||
|
CMD ["npm", "run", "start"]
|