File size: 460 Bytes
8cc558e
 
 
 
 
 
 
c8516c9
 
 
8cc558e
 
 
 
 
 
 
 
 
 
 
d3623c5
8cc558e
 
 
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
FROM python:3.11-slim

WORKDIR /app

# Install uv for faster package management
RUN pip install uv

# Set UV_CACHE_DIR to a writable location
ENV UV_CACHE_DIR /app/.uv_cache

# Copy requirements file
COPY requirements.txt .

# Install dependencies using uv
RUN uv venv
RUN uv pip install -r requirements.txt

# Copy application code
COPY server.py .

# Expose the port the server runs on
EXPOSE 7860

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