add: merged front with back

This commit is contained in:
Lukian LEIZOUR 2025-04-15 22:52:15 +02:00
parent 1832ed12ec
commit 48f50a1daa
42 changed files with 5458 additions and 20 deletions

View file

@ -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"]