agentbaba commited on
Commit
dce840f
·
verified ·
1 Parent(s): 8dcee35

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +28 -0
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a standard python image
2
+ FROM python:3.11-slim
3
+
4
+ # Install system dependencies
5
+ RUN apt-get update && apt-get install -y curl build-essential && rm -rf /var/lib/apt/lists/*
6
+
7
+ # Install uv for fast dependency resolution
8
+ RUN pip install uv
9
+
10
+ # Set up working directory
11
+ WORKDIR /app
12
+
13
+ # Copy requirements first
14
+ COPY pyproject.toml /app/
15
+ COPY uv.lock /app/
16
+
17
+ # Install python dependencies using uv
18
+ RUN uv pip install --system -r pyproject.toml
19
+
20
+ # Copy project files
21
+ COPY . /app
22
+
23
+ # Set port for HuggingFace Spaces
24
+ ENV PORT=7860
25
+ EXPOSE 7860
26
+
27
+ # Run the OpenEnv server
28
+ CMD ["uv", "run", "server"]