File size: 470 Bytes
482b9c0
aada818
 
 
482b9c0
 
aada818
482b9c0
 
 
 
 
 
 
aada818
 
482b9c0
 
 
 
539cc09
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.11-slim

WORKDIR /app

# Install uv securely from the official image
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

# Copy dependency manifests
COPY pyproject.toml uv.lock ./

# Generate virtual environment and sync dependencies
RUN uv sync --frozen

# Copy the rest of the application
COPY . .

# Expose Hugging Face's default web routing port
EXPOSE 7860

# Run the OpenEnv ASGI server entrypoint
CMD ["uv", "run", "python", "-m", "server.app"]