Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions codeclash/arenas/chess/Chess.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

# Install Python 3.10 (and alias python→python3.10), pip, and prerequisites
# Also install C++ compiler and make for building Kojiro
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl ca-certificates python3.10 python3.10-venv \
python3-pip python-is-python3 wget git build-essential \
g++ make jq curl locales \
&& rm -rf /var/lib/apt/lists/*

# Clone Kojiro repository
RUN git clone https://github.com/Babak-SSH/Kojiro.git /workspace \
&& cd /workspace \
&& git remote set-url origin https://github.com/Babak-SSH/Kojiro.git

# Clone and build Fastchess
RUN git clone https://github.com/Disservin/fastchess.git /tmp/fastchess \
&& cd /tmp/fastchess \
&& make -j \
&& install -d /usr/local/bin \
&& install fastchess /usr/local/bin/fastchess \
&& rm -rf /tmp/fastchess

WORKDIR /workspace

Empty file.
Loading