mirror of
https://github.com/maciejpedzich/playlist-entry-validator.git
synced 2024-11-27 16:05:48 +01:00
16 lines
304 B
Docker
16 lines
304 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 --production
|
|
COPY --from=build --chown=node:node /app/dist ./dist
|
|
EXPOSE 3000
|
|
CMD ["node", "./dist/index.js"]
|