Severian commited on
Commit
5a5ea88
·
verified ·
1 Parent(s): 27b5a39

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -18,6 +18,8 @@ RUN apt-get update && apt-get install -y \
18
  libgmp-dev \
19
  libmpfr-dev \
20
  libmpc-dev \
 
 
21
  && rm -rf /var/lib/apt/lists/* \
22
  && pip install --no-cache-dir "poetry==${POETRY_VERSION}"
23
 
@@ -77,12 +79,12 @@ ENV FLASK_APP=app.py \
77
  USER user
78
  EXPOSE 7860 3000
79
 
80
- # Create startup script
81
  RUN echo '#!/bin/bash\n\
82
  echo "===== Application Startup at $(date "+%Y-%m-%d %H:%M:%S") ====="\n\
83
  echo "Starting Dify services..."\n\
84
  cd /app/api && \
85
- PYTHONPATH=/app/api python -m gunicorn app:app \
86
  --bind 0.0.0.0:7860 \
87
  --worker-class gevent \
88
  --workers 1 \
 
18
  libgmp-dev \
19
  libmpfr-dev \
20
  libmpc-dev \
21
+ nodejs \
22
+ npm \
23
  && rm -rf /var/lib/apt/lists/* \
24
  && pip install --no-cache-dir "poetry==${POETRY_VERSION}"
25
 
 
79
  USER user
80
  EXPOSE 7860 3000
81
 
82
+ # Create startup script with corrected paths
83
  RUN echo '#!/bin/bash\n\
84
  echo "===== Application Startup at $(date "+%Y-%m-%d %H:%M:%S") ====="\n\
85
  echo "Starting Dify services..."\n\
86
  cd /app/api && \
87
+ poetry run python -m gunicorn app:app \
88
  --bind 0.0.0.0:7860 \
89
  --worker-class gevent \
90
  --workers 1 \