Severian commited on
Commit
0c01f90
·
verified ·
1 Parent(s): 54e6e52

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -53,6 +53,10 @@ RUN pip install --no-cache-dir "poetry==${POETRY_VERSION}" && \
53
  # Create storage symlink
54
  RUN ln -s /data/storage /app/api/storage
55
 
 
 
 
 
56
  # Add all environment variables from the compose file
57
  ENV FLASK_APP=app.py \
58
  EDITION=SELF_HOSTED \
@@ -66,10 +70,11 @@ ENV FLASK_APP=app.py \
66
  REDIS_HOST=localhost \
67
  REDIS_PORT=6379 \
68
  REDIS_PASSWORD=difyai123456 \
69
- VECTOR_STORE=weaviate
 
70
 
71
  EXPOSE 7860 3000
72
 
73
  WORKDIR /app
74
 
75
- CMD ["./entrypoint.sh"]
 
53
  # Create storage symlink
54
  RUN ln -s /data/storage /app/api/storage
55
 
56
+ # Copy and set up entrypoint script
57
+ COPY --from=api --chown=user:user /entrypoint.sh /app/entrypoint.sh
58
+ RUN chmod +x /app/entrypoint.sh
59
+
60
  # Add all environment variables from the compose file
61
  ENV FLASK_APP=app.py \
62
  EDITION=SELF_HOSTED \
 
70
  REDIS_HOST=localhost \
71
  REDIS_PORT=6379 \
72
  REDIS_PASSWORD=difyai123456 \
73
+ VECTOR_STORE=weaviate \
74
+ MIGRATION_ENABLED=true
75
 
76
  EXPOSE 7860 3000
77
 
78
  WORKDIR /app
79
 
80
+ ENTRYPOINT ["/bin/bash", "/app/entrypoint.sh"]