PPN1 commited on
Commit
0185d9e
·
verified ·
1 Parent(s): 1f7dac0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+ WORKDIR /app
3
+
4
+ # install system deps for pdf2image+poppler
5
+ RUN apt-get update -qq \
6
+ && apt-get install -y --no-install-recommends poppler-utils \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ COPY requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ COPY app.py .
13
+
14
+ # expose the same port HF uses by default
15
+ EXPOSE 7860
16
+
17
+ # launch your FastAPI via Uvicorn
18
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]