fix(docker): remove USER app from custom Dockerfile to avoid startup error
- Remove 'USER app' directive since the base image does not include the 'app' user - Ensures container can start successfully after installing git as rootpull/21981/head
parent
d050e64cde
commit
620f2e4a9e
@ -1,8 +1,6 @@
|
|||||||
FROM langgenius/dify-api:1.5.1
|
FROM langgenius/dify-api:1.5.1
|
||||||
|
|
||||||
USER root
|
|
||||||
RUN apt-get update && apt-get install -y git \
|
RUN apt-get update && apt-get install -y git \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
USER app
|
|
||||||
|
|
||||||
# docker build -f docker/Dockerfile.patch -t land007/dify-api:1.5.1 .
|
# docker build -f docker/Dockerfile.patch -t land007/dify-api:1.5.1 .
|
||||||
Loading…
Reference in New Issue