Fix ownership issue with /app directory in Dockerfile (#1979)
chore: Update Dockerfile to fix ownership issue with /app directory
This commit is contained in:
parent
bd7d8f4e49
commit
9d5d40f6a6
3 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue