warehyyo77 commited on
Commit
f1e5a2b
·
verified ·
1 Parent(s): 789ac37

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # BUAAT SENDIRI TOLOL IDIOT
2
+
3
+ FROM python:3.10-slim
4
+
5
+ # System deps
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ git \
8
+ libglib2.0-0 \
9
+ libsm6 \
10
+ libxext6 \
11
+ libxrender-dev \
12
+ libgl1 \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ WORKDIR /app
16
+
17
+ RUN --mount=type=secret,id=HF_TOKEN \
18
+ git clone https://user:$(cat /run/secrets/HF_TOKEN)@huggingface.co/jemboutireng/OCRAPI .
19
+
20
+
21
+ RUN pip install --no-cache-dir -r requirements.txt
22
+
23
+ EXPOSE 7860
24
+
25
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "3"]