File size: 422 Bytes
32e7301
 
6007ff3
32e7301
6007ff3
 
32e7301
 
72fddae
 
32e7301
6007ff3
32e7301
6007ff3
 
32e7301
72fddae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Use a slim Python base image
FROM python:3.10-slim

# Set the working directory inside the container
WORKDIR /app

# Copy all project files to the container
COPY . .

# Install dependencies
RUN pip install --no-cache-dir flask eventlet python-socketio

# Expose the port Flask will run on (Hugging Face Spaces expects 7860, but Flask defaults to 5000)
EXPOSE 5000

# Command to run the server
CMD ["python", "server.py"]