Files
Checkmate/docker/dist-mono/server.Dockerfile
T

25 lines
377 B
Docker
Raw Normal View History

2025-09-01 08:53:03 -07:00
FROM node:20-slim AS frontend-build
2025-05-19 15:00:11 -07:00
WORKDIR /app/client
2025-09-01 09:26:51 -07:00
COPY client/package*.json ./
2025-05-19 15:00:11 -07:00
RUN npm install
COPY client ./
RUN npm run build
2025-09-01 08:53:03 -07:00
FROM node:20-slim AS app
2025-05-19 15:00:11 -07:00
WORKDIR /app/server
COPY server ./
COPY --from=frontend-build /app/client/dist ./public
RUN npm install
RUN chmod +x ./scripts/inject-vars.sh
EXPOSE 52345
2025-07-25 15:33:48 -07:00
CMD ./scripts/inject-vars.sh && node ./src/index.js