Yield generated for 49c680a2-96b4-4a30-a52b-5b3cfba07d1f
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
274 B

# étape de build
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN yarn install
COPY . .
RUN yarn run build
# étape de production
FROM node:lts-alpine as production-stage
COPY . .
COPY --from=build-stage /app/dist ./dist
CMD ["node", "dist/main"]