Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -13
Dockerfile
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
-
|
| 3 |
|
| 4 |
USER root
|
| 5 |
RUN apt-get update && apt-get install -y \
|
|
@@ -20,25 +19,18 @@ WORKDIR /app
|
|
| 20 |
|
| 21 |
|
| 22 |
RUN pip install --no-cache-dir --upgrade pip setuptools wheel pybind11
|
| 23 |
-
|
| 24 |
-
|
| 25 |
COPY --chown=user requirements.txt /app/
|
| 26 |
-
|
| 27 |
-
|
| 28 |
RUN pip install --no-cache-dir --no-binary=camel-kenlm camel-kenlm
|
| 29 |
-
|
| 30 |
-
RUN python download_models.py
|
| 31 |
-
|
| 32 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 33 |
|
| 34 |
|
| 35 |
-
|
| 36 |
|
| 37 |
|
| 38 |
-
|
| 39 |
|
| 40 |
|
| 41 |
EXPOSE 7860
|
| 42 |
|
| 43 |
-
|
| 44 |
-
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
+
FROM python:3.10
|
|
|
|
| 2 |
|
| 3 |
USER root
|
| 4 |
RUN apt-get update && apt-get install -y \
|
|
|
|
| 19 |
|
| 20 |
|
| 21 |
RUN pip install --no-cache-dir --upgrade pip setuptools wheel pybind11
|
|
|
|
|
|
|
| 22 |
COPY --chown=user requirements.txt /app/
|
|
|
|
|
|
|
| 23 |
RUN pip install --no-cache-dir --no-binary=camel-kenlm camel-kenlm
|
|
|
|
|
|
|
|
|
|
| 24 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 25 |
|
| 26 |
|
| 27 |
+
COPY --chown=user . /app/
|
| 28 |
|
| 29 |
|
| 30 |
+
RUN python download_models.py
|
| 31 |
|
| 32 |
|
| 33 |
EXPOSE 7860
|
| 34 |
|
| 35 |
+
|
| 36 |
+
CMD ["python", "-m", "uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
|