Compare commits
No commits in common. 'main' and 'add_game_knights' have entirely different histories.
main
...
add_game_k
@ -1,8 +0,0 @@
|
|||||||
node_modules
|
|
||||||
client/dist
|
|
||||||
games/
|
|
||||||
server/.lake
|
|
||||||
**/.DS_Store
|
|
||||||
logs/
|
|
||||||
relay/prev_cpu_metric
|
|
||||||
test.ecosystem.config.cjs
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
FROM node:23-bookworm
|
|
||||||
|
|
||||||
RUN apt update && apt upgrade -y
|
|
||||||
RUN apt install -y bubblewrap
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# Install elan
|
|
||||||
RUN curl -sSfL https://github.com/leanprover/elan/releases/download/v3.0.0/elan-x86_64-unknown-linux-gnu.tar.gz | tar xz && \
|
|
||||||
./elan-init -y
|
|
||||||
|
|
||||||
ENV PATH="/root/.elan/bin:${PATH}"
|
|
||||||
|
|
||||||
# Copy package files
|
|
||||||
COPY package.json package-lock.json ./
|
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN npm install
|
|
||||||
|
|
||||||
# Copy project files
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
# Build the project
|
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
EXPOSE 8080
|
|
||||||
|
|
||||||
# Set the entrypoint
|
|
||||||
CMD ["npm", "run", "production"]
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
services:
|
|
||||||
lean4game:
|
|
||||||
build: .
|
|
||||||
privileged: true # needed to run bubblewrap inside docker
|
|
||||||
environment:
|
|
||||||
- LEAN4GAME_GITHUB_USER=${LEAN4GAME_GITHUB_USER}
|
|
||||||
- LEAN4GAME_GITHUB_TOKEN=${LEAN4GAME_GITHUB_TOKEN}
|
|
||||||
ports:
|
|
||||||
- "8080:8080"
|
|
||||||
volumes:
|
|
||||||
- games_data:/app/games
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
games_data:
|
|
||||||
Loading…
Reference in New Issue