lyimo commited on
Commit
c4feae9
·
verified ·
1 Parent(s): 304f473

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -13,8 +13,11 @@ RUN apt-get update && apt-get install -y git && \
13
  pip install -r requirements.txt
14
 
15
  # Set environment variables for cache and API key
16
- ENV TRANSFORMERS_CACHE=/app/.cache/huggingface/hub
17
- ENV OPENAI_API_KEY=sk-proj-zufatzHdsNmcalxgJUG7T3BlbkFJJCw6YnyYqkJhS4xkvrm
 
 
 
18
 
19
  # Copy the rest of the application code into the container
20
  COPY . .
 
13
  pip install -r requirements.txt
14
 
15
  # Set environment variables for cache and API key
16
+ ENV HF_HOME=/app/.cache/huggingface
17
+ ENV OPENAI_API_KEY=your_openai_api_key_here
18
+
19
+ # Create cache directory and set permissions
20
+ RUN mkdir -p /app/.cache/huggingface && chmod -R 777 /app/.cache
21
 
22
  # Copy the rest of the application code into the container
23
  COPY . .