Jobsforce commited on
Commit
39b9336
·
verified ·
1 Parent(s): 3ce87fe

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM python:3.10-slim
2
 
3
  ENV PYTHONDONTWRITEBYTECODE=1
4
  ENV PYTHONUNBUFFERED=1
5
- ENV HF_HOME=/app/hf_cache
6
  ENV NLTK_DATA=/app/nltk_data
7
  ENV PORT=8080
8
  ENV TRANSFORMERS_OFFLINE=0
@@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y \
16
  curl \
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
- RUN mkdir -p /app/nltk_data /app/hf_cache && chmod -R 777 /app
20
 
21
  COPY requirements.txt .
22
  RUN pip install --no-cache-dir -r requirements.txt && \
 
2
 
3
  ENV PYTHONDONTWRITEBYTECODE=1
4
  ENV PYTHONUNBUFFERED=1
5
+ ENV HF_HOME=/tmp/hf_cache
6
  ENV NLTK_DATA=/app/nltk_data
7
  ENV PORT=8080
8
  ENV TRANSFORMERS_OFFLINE=0
 
16
  curl \
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
+ RUN mkdir -p /app/nltk_data /tmp/hf_cache && chmod -R 777 /tmp/hf_cache /app/nltk_data
20
 
21
  COPY requirements.txt .
22
  RUN pip install --no-cache-dir -r requirements.txt && \