Severian commited on
Commit
b0b39f1
·
1 Parent(s): 64cf3a5

Update Dockerfile for correct directory structure

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -91,8 +91,9 @@ COPY --from=web-builder --chown=user /app/web/.next/standalone /app/web
91
  COPY --from=web-builder --chown=user /app/web/.next/static /app/web/.next/static
92
  COPY --from=web-builder --chown=user /app/web/public /app/web/public
93
 
94
- # Download NLTK data
95
- RUN python -c "import nltk; nltk.download('punkt'); nltk.download('averaged_perceptron_tagger')"
 
96
 
97
  # Set environment variables
98
  ENV FLASK_APP=app.py \
 
91
  COPY --from=web-builder --chown=user /app/web/.next/static /app/web/.next/static
92
  COPY --from=web-builder --chown=user /app/web/public /app/web/public
93
 
94
+ # Install NLTK and download data
95
+ RUN pip install --no-cache-dir nltk && \
96
+ python -m nltk.downloader punkt averaged_perceptron_tagger
97
 
98
  # Set environment variables
99
  ENV FLASK_APP=app.py \