Test gcloud
This commit is contained in:
parent
849543d8be
commit
b498090d7b
1 changed files with 17 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
FROM node:14.13.0-alpine3.10 as base
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm install && npm run initialize && npm run build
|
||||
|
||||
FROM node:14.13.0-alpine3.10
|
||||
|
||||
COPY backend/package.json .
|
||||
|
||||
RUN npm install --production
|
||||
|
||||
COPY --from=base backend/dist/main.js main.js
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD [ "node", "main.js" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue