add: added docker file for the backend

This commit is contained in:
Lukian 2025-04-27 14:05:09 +02:00
parent a91cf9d6a5
commit deee8457b7
3 changed files with 27 additions and 3 deletions

12
dockerfile Normal file
View 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"]