mirror of
https://github.com/maciejpedzich/playlist-entry-validator.git
synced 2024-11-14 10:33:02 +01:00
17 lines
341 B
Docker
17 lines
341 B
Docker
FROM node:lts-alpine AS build
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm i
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM node:lts-alpine AS runtime
|
|
USER node
|
|
WORKDIR /app
|
|
ENV NODE_ENV production
|
|
COPY --chown=node:node package*.json ./
|
|
RUN npm ci --omit=dev
|
|
COPY --from=build --chown=node:node /app/dist ./dist
|
|
EXPOSE 3000
|
|
CMD ["node", "./dist/index.js"]
|