Spaces:
Sleeping
Sleeping
Commit
·
2be3a40
1
Parent(s):
93ed01f
feat: Update application with new changes3
Browse files- Dockerfile +10 -0
Dockerfile
CHANGED
|
@@ -1,7 +1,17 @@
|
|
| 1 |
FROM python:3.11-slim
|
|
|
|
| 2 |
WORKDIR /code
|
|
|
|
| 3 |
COPY ./requirements.txt /code/requirements.txt
|
|
|
|
| 4 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
|
| 5 |
COPY ./ /code/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
EXPOSE 7860
|
|
|
|
| 7 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
+
|
| 3 |
WORKDIR /code
|
| 4 |
+
|
| 5 |
COPY ./requirements.txt /code/requirements.txt
|
| 6 |
+
|
| 7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 8 |
+
|
| 9 |
COPY ./ /code/
|
| 10 |
+
|
| 11 |
+
# --- ADD THIS LINE ---
|
| 12 |
+
# Create the data directory so the application has a place to download the models
|
| 13 |
+
RUN mkdir data
|
| 14 |
+
|
| 15 |
EXPOSE 7860
|
| 16 |
+
|
| 17 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|