nellaep commited on
Commit
264eebb
·
verified ·
1 Parent(s): d7b7ce5

Upload Dockerfile-2

Browse files
Files changed (1) hide show
  1. Dockerfile-2 +14 -0
Dockerfile-2 ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ FROM python:3.10
3
+
4
+ WORKDIR /app
5
+
6
+ COPY requirements.txt .
7
+ RUN pip install -r requirements.txt
8
+
9
+ COPY app.py .
10
+
11
+ # Set a custom cache directory to avoid collisions
12
+ ENV TRANSFORMERS_CACHE=/tmp/huggingface_cache
13
+
14
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]