OmPatel commited on
Commit
b53cd6b
·
verified ·
1 Parent(s): 3c54e95

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM python:3.12.2
2
 
3
  # Set environment variables
4
  ENV PYTHONUNBUFFERED=1 \
5
- NLTK_DATA=/root/nltk_data \
6
  FLASK_ENV=production \
7
  FLASK_APP=app.py \
8
  PORT=5003
@@ -17,11 +17,11 @@ COPY . .
17
  RUN pip install -r requirements.txt
18
 
19
  # Preload NLTK data
20
- RUN python -m nltk.downloader punkt punkt_tab -d /root/nltk_data
21
 
22
  # Expose the port the app runs on
23
  EXPOSE 5003
24
 
25
  # Run the Flask app
26
  # CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:5000"]
27
- CMD ["python", "app.py"]
 
2
 
3
  # Set environment variables
4
  ENV PYTHONUNBUFFERED=1 \
5
+ TRANSFORMERS_CACHE=/tmp/transformers_cache \
6
  FLASK_ENV=production \
7
  FLASK_APP=app.py \
8
  PORT=5003
 
17
  RUN pip install -r requirements.txt
18
 
19
  # Preload NLTK data
20
+ RUN python -m nltk.downloader punkt punkt_tab -d /tmp/nltk_data
21
 
22
  # Expose the port the app runs on
23
  EXPOSE 5003
24
 
25
  # Run the Flask app
26
  # CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:5000"]
27
+ CMD ["python", "app.py"]