File size: 707 Bytes
06fa7a8
 
 
 
 
 
 
 
 
 
 
 
b7b4b1c
2439300
 
e652358
 
43116ee
06fa7a8
e2ad842
5aae12d
5118a20
81e1f3a
81ff85d
878d0dc
06fa7a8
 
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
# Use the official Python 3.10.9 image
FROM python:3.10.9

# Copy the current directory contents into the container at .
COPY . .

# Set the working directory to /
WORKDIR /

RUN pip install python-multipart

# Install requirements.txt
RUN pip install --no-cache-dir --upgrade -r /requirements.txt

# Install LeelaChessZero depencies
RUN apt update -y
RUN apt upgrade -y
RUN apt install ocl-icd-opencl-dev -y

# Make engines executable
RUN chmod +x engines/stockfish/*
RUN chmod +x engines/maia/*/lc0
RUN chmod +x engines/RodentIII/*
RUN chmod +x engines/Patricia/*

# Start the FastAPI app on port 7860, the default port expected by Spaces
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]