Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -4,8 +4,9 @@ FROM python:3.9-slim
|
|
| 4 |
|
| 5 |
WORKDIR /code
|
| 6 |
|
|
|
|
| 7 |
RUN apt-get update && apt-get install -y \
|
| 8 |
-
libgl1
|
| 9 |
libglib2.0-0 \
|
| 10 |
libsm6 \
|
| 11 |
libxext6 \
|
|
@@ -13,10 +14,10 @@ RUN apt-get update && apt-get install -y \
|
|
| 13 |
libxcb1 \
|
| 14 |
&& rm -rf /var/lib/apt/lists/*
|
| 15 |
|
|
|
|
| 16 |
COPY ./requirements.txt /code/requirements.txt
|
| 17 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 18 |
|
| 19 |
COPY . .
|
| 20 |
|
| 21 |
-
|
| 22 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 4 |
|
| 5 |
WORKDIR /code
|
| 6 |
|
| 7 |
+
|
| 8 |
RUN apt-get update && apt-get install -y \
|
| 9 |
+
libgl1 \
|
| 10 |
libglib2.0-0 \
|
| 11 |
libsm6 \
|
| 12 |
libxext6 \
|
|
|
|
| 14 |
libxcb1 \
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
| 16 |
|
| 17 |
+
|
| 18 |
COPY ./requirements.txt /code/requirements.txt
|
| 19 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 20 |
|
| 21 |
COPY . .
|
| 22 |
|
|
|
|
| 23 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|