Spaces:
Sleeping
Sleeping
gradio ver
Browse files- Dockerfile +9 -1
Dockerfile
CHANGED
|
@@ -6,10 +6,18 @@ WORKDIR /app
|
|
| 6 |
|
| 7 |
COPY --chown=user:user . /app
|
| 8 |
|
| 9 |
-
RUN pip
|
|
|
|
|
|
|
| 10 |
|
| 11 |
USER user
|
| 12 |
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
| 15 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 6 |
|
| 7 |
COPY --chown=user:user . /app
|
| 8 |
|
| 9 |
+
RUN pip uninstall -y gradio gradio-client || true \
|
| 10 |
+
&& pip install --no-cache-dir --upgrade pip \
|
| 11 |
+
&& pip install --no-cache-dir --force-reinstall -r requirements.txt
|
| 12 |
|
| 13 |
USER user
|
| 14 |
|
| 15 |
|
| 16 |
+
RUN python - <<EOF
|
| 17 |
+
import gradio
|
| 18 |
+
print("INSTALLED GRADIO:", gradio.__version__)
|
| 19 |
+
EOF
|
| 20 |
+
|
| 21 |
+
|
| 22 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
| 23 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|