Severian commited on
Commit
f8b477a
1 Parent(s): a311353

fix: add missing Python dependencies

Browse files

- Add openai package for LLM support
- Add flask-migrate for database migrations
- Update Flask CLI command in entrypoint.sh
- Fix Redis client initialization issue

Files changed (2) hide show
  1. Dockerfile +3 -1
  2. docker/entrypoint.sh +1 -1
Dockerfile CHANGED
@@ -167,7 +167,9 @@ RUN apt-get install -y --no-install-recommends \
167
  tensorflow \
168
  sentencepiece \
169
  tokenizers \
170
- nltk && \
 
 
171
  python -m nltk.downloader punkt averaged_perceptron_tagger
172
 
173
  # Set up directory structure
 
167
  tensorflow \
168
  sentencepiece \
169
  tokenizers \
170
+ nltk \
171
+ openai==1.12.0 \
172
+ flask-migrate==4.0.5 && \
173
  python -m nltk.downloader punkt averaged_perceptron_tagger
174
 
175
  # Set up directory structure
docker/entrypoint.sh CHANGED
@@ -108,7 +108,7 @@ cd /app/api
108
  # Initialize database if needed
109
  if [ ! -f ".db_initialized" ]; then
110
  echo "Running database migrations..."
111
- flask db upgrade
112
  if [ $? -eq 0 ]; then
113
  touch .db_initialized
114
  echo "Database initialization completed successfully"
 
108
  # Initialize database if needed
109
  if [ ! -f ".db_initialized" ]; then
110
  echo "Running database migrations..."
111
+ FLASK_APP=app.py flask db upgrade
112
  if [ $? -eq 0 ]; then
113
  touch .db_initialized
114
  echo "Database initialization completed successfully"