Fu01978 commited on
Commit
919e70c
·
verified ·
1 Parent(s): 1ac8de6

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install Stockfish as root during build
4
+ RUN apt-get update && apt-get install -y stockfish curl && rm -rf /var/lib/apt/lists/*
5
+
6
+ WORKDIR /code
7
+ COPY . .
8
+ RUN pip install --no-cache-dir flask gunicorn chess
9
+
10
+ # Ensure script is executable
11
+ RUN chmod +x setup.sh
12
+
13
+ # Set the entrypoint
14
+ CMD ["./setup.sh"]