Bikas0 commited on
Commit
0eda64e
·
verified ·
1 Parent(s): 3b69f06

update docker

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -3,6 +3,7 @@ FROM python:3.10.0-slim
3
  # Set up the environment
4
  ENV PYTHONDONTWRITEBYTECODE 1
5
  ENV PYTHONUNBUFFERED 1
 
6
 
7
  # Install dependencies
8
  RUN pip install --upgrade pip
@@ -13,6 +14,9 @@ WORKDIR /app
13
  # Copy the application code
14
  COPY . /app
15
 
 
 
 
16
  # Install the dependencies
17
  RUN pip install -r requirements.txt
18
 
 
3
  # Set up the environment
4
  ENV PYTHONDONTWRITEBYTECODE 1
5
  ENV PYTHONUNBUFFERED 1
6
+ ENV HF_HOME=/app/.cache
7
 
8
  # Install dependencies
9
  RUN pip install --upgrade pip
 
14
  # Copy the application code
15
  COPY . /app
16
 
17
+ # Create a cache directory with appropriate permissions
18
+ RUN mkdir -p /app/.cache && chown -R 1000:1000 /app/.cache
19
+
20
  # Install the dependencies
21
  RUN pip install -r requirements.txt
22