feat(docker): add custom Dockerfile for patch support

- Add Dockerfile.patch based on official langgenius/dify-api:1.5.1 image
- Installs git to enable automatic patch application at container startup
- Facilitates robust deployment of custom code changes via patch files
pull/21981/head
YiQiu Jia 11 months ago
parent 7dcfc171cc
commit d050e64cde

@ -0,0 +1,8 @@
FROM langgenius/dify-api:1.5.1
USER root
RUN apt-get update && apt-get install -y git \
&& rm -rf /var/lib/apt/lists/*
USER app
# docker build -f docker/Dockerfile.patch -t land007/dify-api:1.5.1 .

@ -517,7 +517,7 @@ x-shared-env: &shared-api-worker-env
services:
# API service
api:
image: langgenius/dify-api:1.5.1
image: land007/dify-api:1.5.1
restart: always
environment:
# Use the shared environment variables.

Loading…
Cancel
Save