Spaces:
Sleeping
Sleeping
WebashalarForML
commited on
Commit
•
6a60d4c
1
Parent(s):
a9fec65
Update Dockerfile
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
@@ -10,6 +10,10 @@ ENV PYTHONUNBUFFERED 1
|
|
10 |
#ENV PATH="/home/user/.local/bin:$PATH"
|
11 |
#ENV HF_HOME="/app/.cache/huggingface"
|
12 |
|
|
|
|
|
|
|
|
|
13 |
# Set the working directory
|
14 |
WORKDIR /app
|
15 |
|
@@ -36,6 +40,9 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
36 |
# Create directories for session storage, uploads, and cache
|
37 |
RUN mkdir -p /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache && chmod -R 777 /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache
|
38 |
|
|
|
|
|
|
|
39 |
# Copy the rest of the application code to /app
|
40 |
COPY . /app/
|
41 |
|
|
|
10 |
#ENV PATH="/home/user/.local/bin:$PATH"
|
11 |
#ENV HF_HOME="/app/.cache/huggingface"
|
12 |
|
13 |
+
ENV TRANSFORMERS_CACHE=/app/.cache/huggingface
|
14 |
+
ENV HF_HOME=/app/.cache/huggingface
|
15 |
+
ENV MPLCONFIGDIR=/app/.cache/matplotli
|
16 |
+
|
17 |
# Set the working directory
|
18 |
WORKDIR /app
|
19 |
|
|
|
40 |
# Create directories for session storage, uploads, and cache
|
41 |
RUN mkdir -p /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache && chmod -R 777 /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache
|
42 |
|
43 |
+
#hugging Face
|
44 |
+
RUN mkdir -p /app/.cache/huggingface /app/.cache/matplotlib
|
45 |
+
|
46 |
# Copy the rest of the application code to /app
|
47 |
COPY . /app/
|
48 |
|