Spaces:
Runtime error
Runtime error
srivatsavdamaraju
commited on
Commit
•
3f83a7b
1
Parent(s):
8ac5f8b
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -6,7 +6,7 @@ ENV PYTHONDONTWRITEBYTECODE 1
|
|
6 |
ENV PYTHONUNBUFFERED 1
|
7 |
|
8 |
# Step 3: Disable torch hub cache and set the cache directory
|
9 |
-
ENV TORCH_HOME
|
10 |
ENV TORCH_HUB_NO_CACHE=1
|
11 |
|
12 |
# Step 4: Install system dependencies
|
@@ -28,7 +28,7 @@ COPY requirements.txt /app/
|
|
28 |
RUN pip install --no-cache-dir -r requirements.txt
|
29 |
|
30 |
# Step 8: Copy the rest of the application files into the container
|
31 |
-
COPY . /
|
32 |
|
33 |
# Step 9: Expose the port that the Flask app will run on
|
34 |
EXPOSE 5000
|
|
|
6 |
ENV PYTHONUNBUFFERED 1
|
7 |
|
8 |
# Step 3: Disable torch hub cache and set the cache directory
|
9 |
+
ENV TORCH_HOME=/.cache
|
10 |
ENV TORCH_HUB_NO_CACHE=1
|
11 |
|
12 |
# Step 4: Install system dependencies
|
|
|
28 |
RUN pip install --no-cache-dir -r requirements.txt
|
29 |
|
30 |
# Step 8: Copy the rest of the application files into the container
|
31 |
+
COPY . /
|
32 |
|
33 |
# Step 9: Expose the port that the Flask app will run on
|
34 |
EXPOSE 5000
|