Adekiitan11 commited on
Commit
e5c558c
·
verified ·
1 Parent(s): 9a5d179

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ FROM python:3.10-slim
3
+
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+ WORKDIR /app
6
+
7
+ RUN apt-get update && apt-get install -y git libglib2.0-0 libsm6 libxext6 libxrender-dev && apt-get clean
8
+
9
+ COPY ./app ./app
10
+ COPY requirements.txt .
11
+
12
+ RUN pip install --upgrade pip && pip install -r requirements.txt
13
+
14
+ EXPOSE 7860
15
+
16
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]