Files
Checkmate/docker/dist-mono/server.Dockerfile
Alex Holliday 1c47c8ce2c move to src
2025-07-25 15:33:48 -07:00

26 lines
381 B
Docker

FROM node:20-alpine AS frontend-build
WORKDIR /app/client
COPY client/package*.json ./
RUN npm install
COPY client ./
RUN npm run build
FROM node:20-alpine AS app
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
CMD ./scripts/inject-vars.sh && node ./src/index.js