muhtasham commited on
Commit
f027036
1 Parent(s): 717689c

chore: Update Dockerfile to follow Hugging Face's Dockerfile best practices

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -1,10 +1,11 @@
 
 
 
1
  FROM tiangolo/uvicorn-gunicorn:python3.10-slim
2
 
3
- # Copy the current directory contents into the container at /app
4
- COPY . /app
5
 
6
- # Set the working directory to /app
7
- WORKDIR /app
8
 
9
  # Install requirements.txt
10
  RUN pip install --no-cache-dir --upgrade -r /requirements.txt
 
1
+ # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
+ # you will also find guides on how best to write your Dockerfile
3
+
4
  FROM tiangolo/uvicorn-gunicorn:python3.10-slim
5
 
6
+ COPY . .
 
7
 
8
+ WORKDIR /
 
9
 
10
  # Install requirements.txt
11
  RUN pip install --no-cache-dir --upgrade -r /requirements.txt