Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -1,9 +1,12 @@
|
|
| 1 |
FROM nvidia/cuda:12.2.0-cudnn8-runtime-ubuntu22.04
|
| 2 |
|
| 3 |
-
RUN apt update && apt install -y python3-pip git
|
| 4 |
-
|
| 5 |
|
| 6 |
-
COPY . /app
|
| 7 |
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000"]
|
|
|
|
| 1 |
FROM nvidia/cuda:12.2.0-cudnn8-runtime-ubuntu22.04
|
| 2 |
|
| 3 |
+
RUN apt-get update && apt-get install -y python3 python3-pip git && \
|
| 4 |
+
pip3 install --upgrade pip
|
| 5 |
|
| 6 |
+
COPY requirements.txt /app/requirements.txt
|
| 7 |
WORKDIR /app
|
| 8 |
+
RUN pip3 install -r requirements.txt
|
| 9 |
+
|
| 10 |
+
COPY . /app
|
| 11 |
|
| 12 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000"]
|