Severian commited on
Commit
6917a27
·
verified ·
1 Parent(s): 9fed623

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -46
Dockerfile CHANGED
@@ -25,6 +25,21 @@ RUN apt-get update && apt-get install -y \
25
  && npm install -g npm@latest \
26
  && rm -rf /var/lib/apt/lists/*
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  # Pull official images
29
  FROM langgenius/dify-web:latest AS web
30
  FROM langgenius/dify-api:latest AS api
@@ -44,52 +59,6 @@ RUN mkdir -p api web /data/storage && \
44
  COPY --from=web --chown=user /app/web /app/web/
45
  COPY --from=api --chown=user /app/api /app/api/
46
 
47
-
48
- RUN pip install --no-cache-dir \
49
- gunicorn \
50
- gevent \
51
- grpcio \
52
- grpcio-tools \
53
- pydantic-settings \
54
- pydantic \
55
- flask \
56
- flask-cors \
57
- flask-sqlalchemy \
58
- flask-migrate \
59
- flask-login \
60
- flask-limiter \
61
- flask-restful \
62
- fastapi \
63
- uvicorn \
64
- python-multipart \
65
- python-jose[cryptography] \
66
- passlib[bcrypt] \
67
- sqlalchemy \
68
- psycopg2-binary \
69
- alembic \
70
- redis \
71
- celery \
72
- flower \
73
- pytest \
74
- pytest-cov \
75
- pytest-asyncio \
76
- httpx \
77
- PyYAML \
78
- python-dotenv \
79
- requests \
80
- aiohttp \
81
- boto3 \
82
- minio \
83
- tiktoken \
84
- openai \
85
- tenacity \
86
- cryptography \
87
- gmpy2==2.2.1 \
88
- transformers \
89
- torch \
90
- sentencepiece \
91
- protobuf
92
-
93
  # Create symlink for persistent storage
94
  RUN ln -s /data/storage /app/api/storage
95
 
 
25
  && npm install -g npm@latest \
26
  && rm -rf /var/lib/apt/lists/*
27
 
28
+ # Install Poetry
29
+ RUN pip install poetry==1.8.4
30
+
31
+ # Configure Poetry
32
+ ENV POETRY_VERSION=1.8.4 \
33
+ POETRY_NO_INTERACTION=1 \
34
+ POETRY_VIRTUALENVS_CREATE=false \
35
+ POETRY_CACHE_DIR=/cache/poetry
36
+
37
+ # Copy dependency files
38
+ COPY pyproject.toml poetry.lock ./
39
+
40
+ # Install dependencies
41
+ RUN poetry install --no-dev --no-root
42
+
43
  # Pull official images
44
  FROM langgenius/dify-web:latest AS web
45
  FROM langgenius/dify-api:latest AS api
 
59
  COPY --from=web --chown=user /app/web /app/web/
60
  COPY --from=api --chown=user /app/api /app/api/
61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  # Create symlink for persistent storage
63
  RUN ln -s /data/storage /app/api/storage
64