playlist-entry-validator/Dockerfile

16 lines
284 B
Docker

FROM node:lts-alpine AS build
WORKDIR /app
COPY . .
RUN npm ci
RUN npm run build
FROM node:lts-alpine AS runtime
WORKDIR /app
ENV NODE_ENV production
USER node
COPY package*.json ./
RUN npm ci --omit=dev
COPY --from=build /app/dist ./dist
EXPOSE 3000
CMD ["node", "./dist/index.js"]