Skip to content
Snippets Groups Projects
Commit 5d77f77c authored by Antonio Aparecido Dantas's avatar Antonio Aparecido Dantas
Browse files

Dockerfile

parent d507b818
Branches main
No related tags found
No related merge requests found
#Build Stage
FROM node:slim AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
RUN npm run build
#Run stage
FROM node:alpine
COPY --from=builder /app/package.json /app/package-lock.json ./
COPY --from=builder /app/dist ./dist
RUN npm install --omit=dev
EXPOSE 3000
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