Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
FROM python:3.9.12
|
| 2 |
-
|
| 3 |
RUN apt-get update && \
|
| 4 |
apt-get install -y libgl1-mesa-glx
|
| 5 |
|
| 6 |
WORKDIR /code
|
| 7 |
|
| 8 |
COPY . /code
|
| 9 |
-
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
|
| 10 |
RUN chmod +x scripts/download_models.sh
|
| 11 |
RUN bash scripts/download_models.sh
|
|
|
|
| 12 |
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
| 13 |
|
| 14 |
-
CMD ["
|
| 15 |
-
|
| 16 |
-
#CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
FROM python:3.9.12
|
| 2 |
+
USER root
|
| 3 |
RUN apt-get update && \
|
| 4 |
apt-get install -y libgl1-mesa-glx
|
| 5 |
|
| 6 |
WORKDIR /code
|
| 7 |
|
| 8 |
COPY . /code
|
|
|
|
| 9 |
RUN chmod +x scripts/download_models.sh
|
| 10 |
RUN bash scripts/download_models.sh
|
| 11 |
+
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
|
| 12 |
RUN pip install -r requirements.txt
|
| 13 |
+
RUN chmod -R 777 /tmp
|
| 14 |
+
#CMD ["gunicorn", "-b", "0.0.0.0:7860","app:app"]
|
| 15 |
|
| 16 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|