Update Dockerfile
Browse files- Dockerfile +17 -15
Dockerfile
CHANGED
|
@@ -1,15 +1,17 @@
|
|
| 1 |
-
FROM nvidia/cuda:12.1.1-runtime-ubuntu22.04
|
| 2 |
-
|
| 3 |
-
RUN apt-get update && apt-get install -y \
|
| 4 |
-
git wget curl python3 python3-pip && rm -rf /var/lib/apt/lists/*
|
| 5 |
-
|
| 6 |
-
WORKDIR /app
|
| 7 |
-
|
| 8 |
-
COPY requirements.txt /app/requirements.txt
|
| 9 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
-
|
| 11 |
-
COPY . /app
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM nvidia/cuda:12.1.1-runtime-ubuntu22.04
|
| 2 |
+
|
| 3 |
+
RUN apt-get update && apt-get install -y \
|
| 4 |
+
git wget curl python3 python3-pip && rm -rf /var/lib/apt/lists/*
|
| 5 |
+
|
| 6 |
+
WORKDIR /app
|
| 7 |
+
|
| 8 |
+
COPY requirements.txt /app/requirements.txt
|
| 9 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
+
|
| 11 |
+
COPY . /app
|
| 12 |
+
|
| 13 |
+
RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
|
| 14 |
+
|
| 15 |
+
ENV PORT=7860
|
| 16 |
+
|
| 17 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|