Update Dockerfile
Browse files- Dockerfile +9 -3
Dockerfile
CHANGED
|
@@ -1,8 +1,14 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
| 3 |
WORKDIR /code
|
|
|
|
| 4 |
COPY requirements.txt .
|
| 5 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 6 |
-
|
|
|
|
|
|
|
| 7 |
EXPOSE 7860
|
| 8 |
-
CMD ["uvicorn","app:app","--host","0.0.0.0","--port","7860"]
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
+
|
| 3 |
+
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && \
|
| 4 |
+
rm -rf /var/lib/apt/lists/*
|
| 5 |
+
|
| 6 |
WORKDIR /code
|
| 7 |
+
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
+
|
| 11 |
+
COPY app.py /code/app.py
|
| 12 |
+
|
| 13 |
EXPOSE 7860
|
| 14 |
+
CMD ["uvicorn", "app:app", "--host","0.0.0.0","--port","7860"]
|