playlist-entry-validator/Dockerfile

16 lines
284 B
Docker
Raw Normal View History

FROM node:lts-alpine AS build
2024-07-22 08:52:50 +02:00
WORKDIR /app
COPY . .
RUN npm ci
2024-07-22 08:52:50 +02:00
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
2024-07-22 08:52:50 +02:00
EXPOSE 3000
CMD ["node", "./dist/index.js"]