Spaces:
Sleeping
Sleeping
Synced repo using 'sync_with_huggingface' Github Action
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -3,11 +3,14 @@
|
|
3 |
# Use an official Python runtime as a parent image
|
4 |
FROM python:3.11-slim
|
5 |
|
6 |
-
ENV HF_HOME=/app/hf_cache
|
7 |
|
8 |
# Set the working directory in the container
|
9 |
WORKDIR /app
|
10 |
|
|
|
|
|
|
|
|
|
11 |
# Copy requirements.txt and install dependencies
|
12 |
COPY requirements.txt .
|
13 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
3 |
# Use an official Python runtime as a parent image
|
4 |
FROM python:3.11-slim
|
5 |
|
|
|
6 |
|
7 |
# Set the working directory in the container
|
8 |
WORKDIR /app
|
9 |
|
10 |
+
ENV HF_HOME=/app/hf_cache
|
11 |
+
|
12 |
+
RUN mkdir -p /app/hf_cache && chmod -R 777 /app/hf_cache
|
13 |
+
|
14 |
# Copy requirements.txt and install dependencies
|
15 |
COPY requirements.txt .
|
16 |
RUN pip install --no-cache-dir -r requirements.txt
|