Update Dockerfile
Browse files- Dockerfile +25 -27
Dockerfile
CHANGED
|
@@ -1,36 +1,34 @@
|
|
| 1 |
-
FROM python:3.9
|
| 2 |
-
USER root
|
| 3 |
-
RUN apt-get update && \
|
| 4 |
-
apt-get install -y libgl1-mesa-glx libsndfile1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
|
| 7 |
|
| 8 |
-
|
| 9 |
|
| 10 |
-
|
| 11 |
-
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
-
RUN
|
|
|
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
RUN bash scripts/download_models.sh
|
| 18 |
|
| 19 |
-
|
| 20 |
|
| 21 |
-
|
| 22 |
-
#
|
| 23 |
-
#RUN apt-get update && \
|
| 24 |
-
# apt-get install -y libgl1-mesa-glx
|
| 25 |
-
#
|
| 26 |
-
#WORKDIR /app
|
| 27 |
-
#
|
| 28 |
-
#COPY . /app
|
| 29 |
-
#RUN chmod +x scripts/download_models.sh
|
| 30 |
-
#RUN bash scripts/download_models.sh
|
| 31 |
-
#
|
| 32 |
-
#RUN pip install -r requirements.txt
|
| 33 |
-
#
|
| 34 |
-
#EXPOSE 7860
|
| 35 |
-
#
|
| 36 |
-
#CMD ["gunicorn", "-b", ":7860","app:app"]
|
|
|
|
| 1 |
+
#FROM python:3.9
|
| 2 |
+
#USER root
|
| 3 |
+
#RUN apt-get update && \
|
| 4 |
+
# apt-get install -y libgl1-mesa-glx libsndfile1
|
| 5 |
+
#
|
| 6 |
+
#WORKDIR /code
|
| 7 |
+
#
|
| 8 |
+
#COPY ./requirements.txt /code/requirements.txt#
|
| 9 |
+
#
|
| 10 |
+
#RUN pip install librosa==0.9.2
|
| 11 |
+
#RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt#
|
| 12 |
+
#
|
| 13 |
+
#COPY . .
|
| 14 |
|
| 15 |
+
#RUN chmod +x scripts/download_models.sh
|
| 16 |
|
| 17 |
+
#RUN bash scripts/download_models.sh
|
| 18 |
|
| 19 |
+
#CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 20 |
|
| 21 |
+
FROM python:3.9.12
|
| 22 |
|
| 23 |
+
RUN apt-get update && \
|
| 24 |
+
apt-get install -y libgl1-mesa-glx
|
| 25 |
|
| 26 |
+
WORKDIR /code
|
| 27 |
+
|
| 28 |
+
COPY . /code
|
| 29 |
+
RUN chmod +x scripts/download_models.sh
|
| 30 |
RUN bash scripts/download_models.sh
|
| 31 |
|
| 32 |
+
RUN pip install -r requirements.txt
|
| 33 |
|
| 34 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|