Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -9,6 +9,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 9 |
|
| 10 |
COPY requirements.txt /app/requirements.txt
|
| 11 |
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
COPY src /app/src
|
| 14 |
COPY artifacts /app/artifacts
|
|
@@ -18,4 +21,4 @@ ENV PYTHONPATH=/app
|
|
| 18 |
ENV PORT=7860
|
| 19 |
EXPOSE 7860
|
| 20 |
|
| 21 |
-
CMD
|
|
|
|
| 9 |
|
| 10 |
COPY requirements.txt /app/requirements.txt
|
| 11 |
RUN pip install --no-cache-dir -r /app/requirements.txt
|
| 12 |
+
COPY src /app/src
|
| 13 |
+
COPY artifacts /app/artifacts
|
| 14 |
+
|
| 15 |
|
| 16 |
COPY src /app/src
|
| 17 |
COPY artifacts /app/artifacts
|
|
|
|
| 21 |
ENV PORT=7860
|
| 22 |
EXPOSE 7860
|
| 23 |
|
| 24 |
+
CMD ["uvicorn", "src.app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|