ThomasBlumet commited on
Commit
fe2e404
·
1 Parent(s): 5362bf1

change requirements and Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +7 -2
  2. requirements.txt +1 -2
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # For more information, please refer to https://aka.ms/vscode-docker-python
2
- FROM python:3.9
3
 
4
  # Where we'll copy the code
5
  WORKDIR /code
@@ -25,4 +25,9 @@ WORKDIR $HOME/app
25
  COPY --chown=user . $HOME/app
26
 
27
  # During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
28
- CMD ["uvicorn","app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
1
  # For more information, please refer to https://aka.ms/vscode-docker-python
2
+ FROM python:3.10-slim
3
 
4
  # Where we'll copy the code
5
  WORKDIR /code
 
25
  COPY --chown=user . $HOME/app
26
 
27
  # During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
28
+ #CMD ["app:app", "--host", "0.0.0.0", "--port", "7860"]
29
+
30
+ # Expose port 7860
31
+ EXPOSE 7860
32
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
33
+ CMD ["python", "app.py"]
requirements.txt CHANGED
@@ -1,5 +1,4 @@
1
  transformers
2
  torch
3
  gradio
4
- huggingface_hub
5
- uvicorn[standard]==0.17.*
 
1
  transformers
2
  torch
3
  gradio
4
+ huggingface_hub