diff --git a/build_and_push.Dockerfile b/build_and_push.Dockerfile index 3e9e18dab..f5378743b 100644 --- a/build_and_push.Dockerfile +++ b/build_and_push.Dockerfile @@ -78,6 +78,7 @@ RUN $POETRY_HOME/bin/poetry build # Copy virtual environment and built .tar.gz from builder base RUN useradd -m -u 1000 user +RUN chown -R user:user /app USER user # Install the package from the .tar.gz RUN python -m pip install /app/dist/*.tar.gz diff --git a/build_and_push_base.Dockerfile b/build_and_push_base.Dockerfile index 2c7cc2a07..bef6cc3ba 100644 --- a/build_and_push_base.Dockerfile +++ b/build_and_push_base.Dockerfile @@ -82,6 +82,7 @@ RUN cd src/backend/base && $POETRY_HOME/bin/poetry build # Copy virtual environment and built .tar.gz from builder base RUN useradd -m -u 1000 user +RUN chown -R user:user /app USER user # Install the package from the .tar.gz RUN python -m pip install /app/src/backend/base/dist/*.tar.gz diff --git a/docker_example/pre.docker-compose.yml b/docker_example/pre.docker-compose.yml index b2fa00903..229221fff 100644 --- a/docker_example/pre.docker-compose.yml +++ b/docker_example/pre.docker-compose.yml @@ -10,9 +10,9 @@ services: environment: - LANGFLOW_DATABASE_URL=postgresql://langflow:langflow@postgres:5432/langflow # This variable defines where the logs, file storage, monitor data and secret keys are stored. - - LANGFLOW_CONFIG_DIR=/var/lib/langflow + - LANGFLOW_CONFIG_DIR=app/langflow volumes: - - langflow-data:/var/lib/langflow + - langflow-data:app/langflow postgres: image: postgres:16