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.
 

14 lines
233 B

FROM node:12-alpine AS build
WORKDIR /src
COPY . .
RUN npm ci && npm run build
FROM node:12-alpine
WORKDIR /app
COPY --from=build /src/dist .
ENTRYPOINT node /app/index.js
COPY package* ./
RUN npm ci --only=production
EXPOSE 3000