mirror of
https://github.com/R0m1k3/chesspreview.git
synced 2026-10-20 21:58:43 +02:00
Build Atelier 64 chess training app
This commit is contained in:
commit
3dd0aa9a09
15 files changed
+2574
No files matched your search
+17
@@ -0,0 +1,17 @@
|
||||
FROM node:22-bookworm-slim AS build
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM node:22-bookworm-slim
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends stockfish && rm -rf /var/lib/apt/lists/*
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production PORT=3000 STOCKFISH_PATH=/usr/games/stockfish
|
||||
COPY package*.json ./
|
||||
RUN npm ci --omit=dev
|
||||
COPY --from=build /app/dist ./dist
|
||||
COPY server ./server
|
||||
EXPOSE 3000
|
||||
CMD ["node", "server/index.js"]
|
||||
Reference in new issue
Block a user