Files
Checkmate/docker/prod/server.Dockerfile
T
Alex Holliday 839dc201df dist
2026-01-26 15:57:23 -08:00

22 lines
321 B
Docker
Executable File

FROM node:20-slim
# Install ping
RUN apt-get update \
&& apt-get install -y iputils-ping \
&& rm -rf /var/lib/apt/lists/*
ENV NODE_OPTIONS="--max-old-space-size=2048"
WORKDIR /app
COPY ./server/package*.json ./
RUN npm install
COPY ./server ./
RUN npm run build
EXPOSE 52345
CMD ["node", "dist/index.js"]