-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathChess.Dockerfile
More file actions
28 lines (22 loc) · 912 Bytes
/
Chess.Dockerfile
File metadata and controls
28 lines (22 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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