Dockerfile update

This commit is contained in:
2025-10-21 21:43:46 +03:00
parent 1d0ab8caee
commit d02928e307
3 changed files with 38 additions and 25 deletions

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
# Build client
FROM node:22-alpine AS client
WORKDIR /app/client
COPY client/package*.json ./
RUN npm ci || npm i
COPY client .
RUN npm run build
# Build server
FROM node:22-slim
RUN apt-get update && apt-get install -y ffmpeg
WORKDIR /app/server
COPY server/package*.json ./
RUN npm ci || npm i
COPY server .
# Move files to public folder
COPY --from=client /app/client/dist ./public
EXPOSE 3001
CMD ["npm", "start"]