Skip to content
Snippets Groups Projects
Commit 74ba0f19 authored by Denis Fedosov's avatar Denis Fedosov
Browse files

add dockerfile

parent d507b818
No related branches found
No related tags found
No related merge requests found
# First stage
FROM node:slim AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Second stage
FROM node:alpine AS run
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
COPY --from=build /app/dist ./dist
CMD [ "node", "dist/index.js" ]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment