chore: Update Dockerfile to follow Hugging Face's Dockerfile best practices
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -1,10 +1,11 @@
|
|
|
|
|
|
|
|
1 |
FROM tiangolo/uvicorn-gunicorn:python3.10-slim
|
2 |
|
3 |
-
|
4 |
-
COPY . /app
|
5 |
|
6 |
-
|
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
|