daniloedu commited on
Commit
6336288
·
verified ·
1 Parent(s): 40905e4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -1,5 +1,9 @@
1
  FROM python:3.9-slim
2
 
 
 
 
 
3
  WORKDIR /app
4
 
5
  RUN apt-get update && apt-get install -y \
@@ -9,6 +13,9 @@ RUN apt-get update && apt-get install -y \
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
 
 
12
  COPY requirements.txt ./
13
  COPY src/ ./src/
14
 
 
1
  FROM python:3.9-slim
2
 
3
+ # Set environment variables for cache directories
4
+ ENV TRANSFORMERS_CACHE=/tmp/transformers_cache
5
+ ENV HF_HOME=/tmp/hf_home
6
+
7
  WORKDIR /app
8
 
9
  RUN apt-get update && apt-get install -y \
 
13
  git \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
+ # Create cache directories
17
+ RUN mkdir -p /tmp/transformers_cache /tmp/hf_home
18
+
19
  COPY requirements.txt ./
20
  COPY src/ ./src/
21