Dockerfile

This commit is contained in:
Victor Radael
2022-02-02 12:27:02 -03:00
parent 24e8c732b8
commit ca7bfe2e86
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM node:14 as packages
WORKDIR /packages
COPY package.json .
RUN npm install
FROM node:alpine
WORKDIR /app
COPY . /app/
COPY --from=packages /packages/node_modules /app/node_modules
RUN npm run build
EXPOSE 3000
ENTRYPOINT npm run start