[PR #7726] Update package "libldap-2.5-0" for docker build. #25808

Closed
opened 2026-02-21 20:26:13 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/7726

State: closed
Merged: Yes


Checklist:

Important

Please review the checklist below before submitting your pull request.

  • Please open an issue before creating a PR or link to an existing issue
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

Description

Fixes #7725

update Dockerfile for package "libldap-2.5-0"

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update, included: Dify Document
  • Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement
  • Dependency upgrade

Testing Instructions

  • docker build
    • make build-api
docker build log
$ make build-api
Building API Docker image: langgenius/dify-api:latest...
docker build -t langgenius/dify-api:latest ./api
[+] Building 110.1s (18/18) FINISHED                                                                                        docker:default
 => [internal] load build definition from Dockerfile                                                                                  0.0s
 => => transferring dockerfile: 2.47kB                                                                                                0.0s
 => [internal] load metadata for docker.io/library/python:3.10-slim-bookworm                                                          1.1s
 => [internal] load .dockerignore                                                                                                     0.0s
 => => transferring context: 125B                                                                                                     0.0s
 => [internal] load build context                                                                                                     0.2s
 => => transferring context: 227.58kB                                                                                                 0.2s
 => [base 1/3] FROM docker.io/library/python:3.10-slim-bookworm@sha256:8666a639a54acc810408e505e2c6b46b50834385701675ee177f578b3d2fd  0.0s
 => CACHED [production 1/7] WORKDIR /app/api                                                                                          0.0s
 => CACHED [base 2/3] WORKDIR /app/api                                                                                                0.0s
 => CACHED [base 3/3] RUN pip install --no-cache-dir poetry==1.8.3                                                                    0.0s
 => [production 2/7] RUN apt-get update     && apt-get install -y --no-install-recommends curl nodejs libgmp-dev libmpfr-dev libmpc  18.8s
 => [packages 1/3] RUN apt-get update     && apt-get install -y --no-install-recommends gcc g++ libc-dev libffi-dev libgmp-dev libm  11.1s
 => [packages 2/3] COPY pyproject.toml poetry.lock ./                                                                                 0.0s
 => [packages 3/3] RUN poetry install --sync --no-cache --no-root                                                                    59.9s
 => [production 3/7] COPY --from=packages /app/api/.venv /app/api/.venv                                                               7.8s
 => [production 4/7] RUN python -c "import nltk; nltk.download('punkt'); nltk.download('averaged_perceptron_tagger')"                 3.1s
 => [production 5/7] COPY . /app/api/                                                                                                 0.3s
 => [production 6/7] COPY docker/entrypoint.sh /entrypoint.sh                                                                         0.0s
 => [production 7/7] RUN chmod +x /entrypoint.sh                                                                                      0.2s
 => exporting to image                                                                                                               14.0s
 => => exporting layers                                                                                                              14.0s
 => => writing image sha256:617c8273f6054fc64120c4f2fe1baf3174cbc0d111cfadfce6c656893e9bb748                                          0.0s
 => => naming to docker.io/langgenius/dify-api:latest                                                                                 0.0s
API Docker image built successfully: langgenius/dify-api:latest
**Original Pull Request:** https://github.com/langgenius/dify/pull/7726 **State:** closed **Merged:** Yes --- # Checklist: > [!IMPORTANT] > Please review the checklist below before submitting your pull request. - [x] Please open an issue before creating a PR or link to an existing issue - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods # Description Fixes #7725 update **Dockerfile** for package "libldap-2.5-0" ## Type of Change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [ ] Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement - [ ] Dependency upgrade # Testing Instructions - docker build - make build-api <details open> <summary>docker build log</summary> ~~~ $ make build-api Building API Docker image: langgenius/dify-api:latest... docker build -t langgenius/dify-api:latest ./api [+] Building 110.1s (18/18) FINISHED docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2.47kB 0.0s => [internal] load metadata for docker.io/library/python:3.10-slim-bookworm 1.1s => [internal] load .dockerignore 0.0s => => transferring context: 125B 0.0s => [internal] load build context 0.2s => => transferring context: 227.58kB 0.2s => [base 1/3] FROM docker.io/library/python:3.10-slim-bookworm@sha256:8666a639a54acc810408e505e2c6b46b50834385701675ee177f578b3d2fd 0.0s => CACHED [production 1/7] WORKDIR /app/api 0.0s => CACHED [base 2/3] WORKDIR /app/api 0.0s => CACHED [base 3/3] RUN pip install --no-cache-dir poetry==1.8.3 0.0s => [production 2/7] RUN apt-get update && apt-get install -y --no-install-recommends curl nodejs libgmp-dev libmpfr-dev libmpc 18.8s => [packages 1/3] RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ libc-dev libffi-dev libgmp-dev libm 11.1s => [packages 2/3] COPY pyproject.toml poetry.lock ./ 0.0s => [packages 3/3] RUN poetry install --sync --no-cache --no-root 59.9s => [production 3/7] COPY --from=packages /app/api/.venv /app/api/.venv 7.8s => [production 4/7] RUN python -c "import nltk; nltk.download('punkt'); nltk.download('averaged_perceptron_tagger')" 3.1s => [production 5/7] COPY . /app/api/ 0.3s => [production 6/7] COPY docker/entrypoint.sh /entrypoint.sh 0.0s => [production 7/7] RUN chmod +x /entrypoint.sh 0.2s => exporting to image 14.0s => => exporting layers 14.0s => => writing image sha256:617c8273f6054fc64120c4f2fe1baf3174cbc0d111cfadfce6c656893e9bb748 0.0s => => naming to docker.io/langgenius/dify-api:latest 0.0s API Docker image built successfully: langgenius/dify-api:latest ~~~ </details>
yindo added the pull-request label 2026-02-21 20:26:13 -05:00
yindo closed this issue 2026-02-21 20:26:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#25808