dvwn commited on
Commit
b344eb1
·
1 Parent(s): cf6f52b

Create Dockerfile

Browse files

Add dockerfile for Hugging Face deployment through spaces

Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY backend/requirements.txt .
6
+
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ COPY backend/ .
10
+
11
+ # Expose the mandatory Hugging Face port
12
+ EXPOSE 7860
13
+
14
+ CMD [ "uvicorn", "server.api_server:app", "--host", "0.0.0.0", "--port", "7860" ]