File size: 722 Bytes
06fa7a8
 
 
 
 
 
 
 
 
 
 
 
b7b4b1c
2439300
 
e652358
 
a4eec7a
 
 
 
06fa7a8
e2ad842
 
 
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
28
# 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-cache search cuda
# RUN apt install ocl-icd-opencl-dev -y
# RUN apt install cuda -y
# RUN apt install zlib1g -y

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

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