iamspruce commited on
Commit
bc90aa1
·
1 Parent(s): 226b002

updated dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -18,10 +18,14 @@ RUN pip install --no-cache-dir -r requirements.txt
18
  RUN python -m spacy download en_core_web_sm
19
 
20
  # Setup Hugging Face cache directory and permissions
21
- # This can help manage where Hugging Face models are stored within the container
22
  ENV HF_HOME=/cache
23
  RUN mkdir -p /cache && chmod -R 777 /cache
24
 
 
 
 
 
25
  # Copy the entire application code into the container
26
  # This copies your 'app' directory, including main.py, routers, models, etc.
27
  COPY app ./app
 
18
  RUN python -m spacy download en_core_web_sm
19
 
20
  # Setup Hugging Face cache directory and permissions
21
+ # This directory will now also be used by language-tool-python for its downloads.
22
  ENV HF_HOME=/cache
23
  RUN mkdir -p /cache && chmod -R 777 /cache
24
 
25
+ # Set environment variable for language-tool-python download directory
26
+ # This redirects LanguageTool's cache to the shared /cache directory.
27
+ ENV LANGUAGE_TOOL_DOWNLOAD_DIR=/cache
28
+
29
  # Copy the entire application code into the container
30
  # This copies your 'app' directory, including main.py, routers, models, etc.
31
  COPY app ./app