Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
|
|
| 1 |
FROM python:3.12-slim
|
| 2 |
|
|
|
|
| 3 |
RUN apt-get update && apt-get install -y \
|
| 4 |
build-essential \
|
| 5 |
make \
|
|
@@ -10,8 +12,10 @@ RUN apt-get update && apt-get install -y \
|
|
| 10 |
findutils \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
|
|
|
| 13 |
WORKDIR /app
|
| 14 |
|
|
|
|
| 15 |
COPY . .
|
| 16 |
|
| 17 |
# ============================================================
|
|
@@ -59,7 +63,7 @@ RUN chmod -R 777 /app/engine_bin
|
|
| 59 |
RUN if [ -f /app/server/requirements.txt ]; then \
|
| 60 |
pip install --no-cache-dir -r /app/server/requirements.txt; \
|
| 61 |
else \
|
| 62 |
-
pip install --no-cache-dir fastapi "uvicorn[standard]" websockets python-chess pydantic; \
|
| 63 |
fi
|
| 64 |
|
| 65 |
# Explicit Paths
|
|
|
|
| 1 |
+
# Use Python 3.12 slim
|
| 2 |
FROM python:3.12-slim
|
| 3 |
|
| 4 |
+
# Install system dependencies
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
build-essential \
|
| 7 |
make \
|
|
|
|
| 12 |
findutils \
|
| 13 |
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
+
# Set working directory
|
| 16 |
WORKDIR /app
|
| 17 |
|
| 18 |
+
# Copy ALL files from the repository
|
| 19 |
COPY . .
|
| 20 |
|
| 21 |
# ============================================================
|
|
|
|
| 63 |
RUN if [ -f /app/server/requirements.txt ]; then \
|
| 64 |
pip install --no-cache-dir -r /app/server/requirements.txt; \
|
| 65 |
else \
|
| 66 |
+
pip install --no-cache-dir fastapi "uvicorn[standard]" websockets python-chess pydantic psutil; \
|
| 67 |
fi
|
| 68 |
|
| 69 |
# Explicit Paths
|