Sumkh commited on
Commit
cb5fa7f
·
verified ·
1 Parent(s): 4aff4b0

Upload 3 files

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -7,6 +7,11 @@ RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*
7
  # Set working directory
8
  WORKDIR /app
9
 
 
 
 
 
 
10
  # Copy the requirements file and install dependencies
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
 
7
  # Set working directory
8
  WORKDIR /app
9
 
10
+ # Create a writable cache directory and set environment variable
11
+ RUN mkdir -p /app/.cache
12
+ ENV HF_HOME=/app/.cache
13
+ ENV USER_AGENT="my-gradio-app"
14
+
15
  # Copy the requirements file and install dependencies
16
  COPY requirements.txt .
17
  RUN pip install --no-cache-dir -r requirements.txt