Roopalgn commited on
Commit
2216a4d
·
1 Parent(s): 186fd65

Add root Dockerfile for Hugging Face Space

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ ENV PYTHONDONTWRITEBYTECODE=1 \
4
+ PYTHONUNBUFFERED=1
5
+
6
+ WORKDIR /app
7
+
8
+ COPY . .
9
+
10
+ RUN apt-get update && apt-get install -y --no-install-recommends git \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN python -m pip install --upgrade pip \
14
+ && python -m pip install --no-cache-dir -r requirements.txt \
15
+ && python -m pip install --no-cache-dir .
16
+
17
+ EXPOSE 7860
18
+
19
+ CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]