mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
26 lines
441 B
Docker
26 lines
441 B
Docker
FROM node:24 AS frontend
|
|
|
|
WORKDIR /app
|
|
COPY package.json .
|
|
RUN npm install --ignore-scripts
|
|
|
|
COPY frontend frontend
|
|
RUN npm run build
|
|
|
|
FROM node:24 AS server
|
|
|
|
WORKDIR /server
|
|
COPY deployment/frontend/package.json .
|
|
RUN npm install
|
|
COPY deployment/frontend/ .
|
|
|
|
FROM node:24-slim
|
|
|
|
WORKDIR /app
|
|
COPY --from=frontend /app/frontend/dist .
|
|
|
|
WORKDIR /server
|
|
COPY --from=server /server .
|
|
|
|
ENV STATIC_FILE_PATH=/app
|
|
ENTRYPOINT ["npm", "run", "start"] |