dragonxd1 commited on
Commit
f36ab8c
·
verified ·
1 Parent(s): 3355f04

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # install git + bash
4
+ RUN apt-get update && apt-get install -y git bash && rm -rf /var/lib/apt/lists/*
5
+
6
+ # working directory
7
+ WORKDIR /app
8
+
9
+ # copy launcher
10
+ COPY app.py .
11
+
12
+ # install base deps
13
+ RUN pip install --no-cache-dir fastapi uvicorn
14
+
15
+ # HF spaces port
16
+ EXPOSE 7860
17
+
18
+ # run launcher
19
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]