add: merged front with back
This commit is contained in:
parent
1832ed12ec
commit
48f50a1daa
42 changed files with 5458 additions and 20 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,5 +1,12 @@
|
|||
FROM node:alpine AS build
|
||||
WORKDIR /app
|
||||
COPY front .
|
||||
RUN npm install && npm run build
|
||||
|
||||
FROM node:alpine
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN npm i
|
||||
CMD ["npm", "run", "start"]
|
||||
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