vickyvigneshmass commited on
Commit
344a771
·
verified ·
1 Parent(s): 86eca97

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -4,10 +4,14 @@ FROM python:3.9-slim
4
  # Set environment variables
5
  ENV PYTHONDONTWRITEBYTECODE=1
6
  ENV PYTHONUNBUFFERED=1
 
7
 
8
  # Set work directory
9
  WORKDIR /app
10
 
 
 
 
11
  # Copy the requirements file
12
  COPY requirements.txt .
13
 
 
4
  # Set environment variables
5
  ENV PYTHONDONTWRITEBYTECODE=1
6
  ENV PYTHONUNBUFFERED=1
7
+ ENV TRANSFORMERS_CACHE=/app/cache # Set custom writable cache dir for Hugging Face
8
 
9
  # Set work directory
10
  WORKDIR /app
11
 
12
+ # Create writable cache directory
13
+ RUN mkdir -p /app/cache
14
+
15
  # Copy the requirements file
16
  COPY requirements.txt .
17