Reem1 commited on
Commit
dfbf195
·
verified ·
1 Parent(s): 9e67d35

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- ENV PORT=7860
14
-
15
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
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"]