chore: Update Dockerfile to remove unnecessary useradd command and fix pip installation

This commit is contained in:
ogabrielluiz 2024-05-23 17:38:39 -03:00
commit 9e1f056d18
2 changed files with 6 additions and 5 deletions

View file

@ -78,9 +78,9 @@ RUN $POETRY_HOME/bin/poetry build
# Copy virtual environment and built .tar.gz from builder base
RUN useradd -m -u 1000 user
USER user
# Install the package from the .tar.gz
RUN python -m pip install /app/dist/*.tar.gz --user
RUN python -m pip install /app/dist/*.tar.gz
ENTRYPOINT ["python", "-m", "langflow", "run"]
CMD ["--host", "0.0.0.0", "--port", "7860"]
CMD ["--host", "0.0.0.0", "--port", "7860"]

View file

@ -83,8 +83,9 @@ RUN cd src/backend/base && $POETRY_HOME/bin/poetry build --format sdist
# Copy virtual environment and built .tar.gz from builder base
RUN useradd -m -u 1000 user
# Install the package from the .tar.gz
RUN python -m pip install /app/dist/*.tar.gz --user
USER user
RUN python -m pip install /app/dist/*.tar.gz
ENTRYPOINT ["python", "-m", "langflow", "run"]
CMD ["--host", "0.0.0.0", "--port", "7860"]
CMD ["--host", "0.0.0.0", "--port", "7860"]