chore: Update Dockerfile to remove unnecessary useradd command and fix pip installation
This commit is contained in:
parent
b98f69aa98
commit
9e1f056d18
2 changed files with 6 additions and 5 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue