Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +1 -5
Dockerfile
CHANGED
|
@@ -10,7 +10,6 @@ RUN apt-get update && apt-get install -y \
|
|
| 10 |
libsm6 \
|
| 11 |
libxext6
|
| 12 |
|
| 13 |
-
RUN pip install --upgrade pip
|
| 14 |
RUN pip install -r requirements.txt
|
| 15 |
|
| 16 |
RUN mkdir -p /.cache /root/.cache /tmp/.cache /api/.cache && \
|
|
@@ -21,9 +20,6 @@ ENV HUGGINGFACE_HUB_CACHE=/tmp/.cache/huggingface
|
|
| 21 |
|
| 22 |
RUN chmod -R 777 /api /tmp /root /.cache
|
| 23 |
|
| 24 |
-
RUN useradd -m myuser
|
| 25 |
-
USER myuser
|
| 26 |
-
|
| 27 |
EXPOSE 7860
|
| 28 |
|
| 29 |
-
CMD ["
|
|
|
|
| 10 |
libsm6 \
|
| 11 |
libxext6
|
| 12 |
|
|
|
|
| 13 |
RUN pip install -r requirements.txt
|
| 14 |
|
| 15 |
RUN mkdir -p /.cache /root/.cache /tmp/.cache /api/.cache && \
|
|
|
|
| 20 |
|
| 21 |
RUN chmod -R 777 /api /tmp /root /.cache
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
EXPOSE 7860
|
| 24 |
|
| 25 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|