add: added docker file for the backend
This commit is contained in:
parent
a91cf9d6a5
commit
deee8457b7
3 changed files with 27 additions and 3 deletions
12
dockerfile
Normal file
12
dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM node:alpine AS build
|
||||
WORKDIR /app
|
||||
COPY front .
|
||||
RUN npm install && npm run build
|
||||
|
||||
FROM node:alpine
|
||||
WORKDIR /app
|
||||
COPY back .
|
||||
RUN npm install
|
||||
COPY --from=build /app/dist /app/public
|
||||
EXPOSE 3000
|
||||
CMD ["node", "index.js"]
|
Loading…
Add table
Add a link
Reference in a new issue