mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-21 00:48:45 -05:00
34 lines
511 B
Docker
34 lines
511 B
Docker
FROM node:20-slim AS frontend-build
|
|
|
|
WORKDIR /app/client
|
|
|
|
COPY client/package*.json ./
|
|
RUN npm install
|
|
|
|
COPY client ./
|
|
RUN npm run build
|
|
|
|
FROM node:20-slim AS app
|
|
|
|
# Install ping
|
|
RUN apt-get update \
|
|
&& apt-get install -y iputils-ping \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app/server
|
|
|
|
COPY server ./
|
|
|
|
|
|
RUN npm install
|
|
|
|
RUN npm run build
|
|
|
|
COPY --from=frontend-build /app/client/dist ./public
|
|
|
|
RUN chmod +x ./scripts/inject-vars.sh
|
|
|
|
EXPOSE 52345
|
|
|
|
CMD ./scripts/inject-vars.sh && node ./dist/index.js
|