Bc-AI commited on
Commit
8db6a25
·
verified ·
1 Parent(s): b50dda1

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ============================================================================
2
+ # Dockerfile.head - For Head Node Space
3
+ # ============================================================================
4
+
5
+ FROM python:3.10-slim
6
+
7
+ WORKDIR /app
8
+
9
+ # Install dependencies
10
+ RUN pip install --no-cache-dir \
11
+ fastapi \
12
+ uvicorn[standard] \
13
+ httpx \
14
+ pydantic
15
+
16
+ # Copy head node code
17
+ COPY head_api.py /app/app.py
18
+
19
+ # Expose port
20
+ EXPOSE 7860
21
+
22
+ # Run
23
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]