Update Dockerfile
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
|
@@ -1,8 +1,4 @@
|
|
| 1 |
-
|
| 2 |
-
# you will also find guides on how best to write your Dockerfile
|
| 3 |
-
|
| 4 |
-
FROM python:3.9
|
| 5 |
-
|
| 6 |
|
| 7 |
# Install ffmpeg and libsndfile1 (for torchaudio/soundfile)
|
| 8 |
USER root
|
|
@@ -18,4 +14,4 @@ COPY --chown=user ./requirements.txt requirements.txt
|
|
| 18 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 19 |
|
| 20 |
COPY --chown=user . /app
|
| 21 |
-
CMD ["uvicorn", "
|
|
|
|
| 1 |
+
FROM python:3.11
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
# Install ffmpeg and libsndfile1 (for torchaudio/soundfile)
|
| 4 |
USER root
|
|
|
|
| 14 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 15 |
|
| 16 |
COPY --chown=user . /app
|
| 17 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]
|