megar74877 commited on
Commit
36ac252
·
verified ·
1 Parent(s): a8831ef

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # Install git and clone the proxy repository
4
+ RUN apt-get update && apt-get install -y git
5
+ RUN git clone https://github.com/fuergaosi233/claude-code-proxy.git /app
6
+
7
+ WORKDIR /app
8
+
9
+ # Install dependencies
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # Hugging Face Spaces exposes port 7860 by default
13
+ ENV HOST=0.0.0.0
14
+ ENV PORT=7860
15
+ EXPOSE 7860
16
+
17
+ # Start the proxy
18
+ CMD ["python", "start_proxy.py"]