Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -3,7 +3,8 @@ FROM python:3.11-slim-bookworm
|
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive \
|
| 4 |
PYTHONUNBUFFERED=1 \
|
| 5 |
PYTHONDONTWRITEBYTECODE=1 \
|
| 6 |
-
PIP_NO_CACHE_DIR=1
|
|
|
|
| 7 |
|
| 8 |
WORKDIR /code
|
| 9 |
|
|
@@ -27,11 +28,10 @@ COPY requirements.txt .
|
|
| 27 |
RUN pip install --upgrade pip \
|
| 28 |
&& pip install --no-cache-dir -r requirements.txt
|
| 29 |
|
| 30 |
-
|
| 31 |
COPY . .
|
| 32 |
|
| 33 |
-
# Expose the port Hugging Face expects
|
| 34 |
EXPOSE 7860
|
| 35 |
|
| 36 |
-
|
| 37 |
CMD ["uvicorn", "new_app.new_main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive \
|
| 4 |
PYTHONUNBUFFERED=1 \
|
| 5 |
PYTHONDONTWRITEBYTECODE=1 \
|
| 6 |
+
PIP_NO_CACHE_DIR=1 \
|
| 7 |
+
PATH="/root/.local/bin:$PATH"
|
| 8 |
|
| 9 |
WORKDIR /code
|
| 10 |
|
|
|
|
| 28 |
RUN pip install --upgrade pip \
|
| 29 |
&& pip install --no-cache-dir -r requirements.txt
|
| 30 |
|
| 31 |
+
|
| 32 |
COPY . .
|
| 33 |
|
|
|
|
| 34 |
EXPOSE 7860
|
| 35 |
|
| 36 |
+
|
| 37 |
CMD ["uvicorn", "new_app.new_main:app", "--host", "0.0.0.0", "--port", "7860"]
|