WebashalarForML commited on
Commit
46813f8
1 Parent(s): b8805b9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -8,7 +8,7 @@ ENV PYTHONUNBUFFERED 1
8
  # Set environment variables
9
  ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
10
  ENV PATH="/home/user/.local/bin:$PATH"
11
- ENV HF_HOME="/home/user/.cache/huggingface"
12
 
13
  # Set the working directory
14
  WORKDIR /app
@@ -40,4 +40,4 @@ ENV FLASK_APP=app.py
40
  ENV FLASK_ENV=production
41
 
42
  # Command to run the Flask app using Gunicorn
43
- CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"]
 
8
  # Set environment variables
9
  ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
10
  ENV PATH="/home/user/.local/bin:$PATH"
11
+ ENV HF_HOME="/app/.cache/huggingface" # Update to a writable location
12
 
13
  # Set the working directory
14
  WORKDIR /app
 
40
  ENV FLASK_ENV=production
41
 
42
  # Command to run the Flask app using Gunicorn
43
+ CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"]