Hadeel11 commited on
Commit
3ccf041
1 Parent(s): 81ef716

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -1,16 +1,13 @@
1
-
2
  FROM huggingface/transformers-pytorch-gpu:latest
3
 
4
-
5
  RUN pip install --upgrade pip
6
- RUN pip install transformers
7
-
8
 
9
- ENV MODEL_NAME="Hadeel11/your-finetuned-model"
10
- ENV USE_FP16=True
11
 
 
12
 
13
  EXPOSE 8080
14
 
 
15
 
16
- CMD ["python3", "-m", "transformers_serve", "--model-id", "${MODEL_NAME}"]
 
 
1
  FROM huggingface/transformers-pytorch-gpu:latest
2
 
 
3
  RUN pip install --upgrade pip
4
+ RUN pip install transformers torch fastapi uvicorn
 
5
 
6
+ COPY app.py /app/app.py
 
7
 
8
+ WORKDIR /app
9
 
10
  EXPOSE 8080
11
 
12
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
13