Skip to content

Commit 3234020

Browse files
authored
Update Docker
1 parent f403e73 commit 3234020

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

Docker

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
FROM python:3.10
1+
FROM nvidia/cuda:12.1.0-runtime-ubuntu22.04
22

33
WORKDIR /app
44

5+
RUN apt-get update && apt-get install -y \
6+
python3 python3-pip
7+
58
COPY requirements.txt .
6-
RUN pip install -r requirements.txt
9+
10+
RUN pip3 install --upgrade pip
11+
RUN pip3 install -r requirements.txt
712

813
COPY . .
914

10-
CMD ["uvicorn","app.infer_api:app","--host","0.0.0.0","--port","8000"]
15+
EXPOSE 8000
16+
17+
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)