Update to render.yaml and render.Dockerfile for fix deployment on render platform (#2433)

This PR updates the files render.yml and docker/render.Dockerfile to fix
the deployment on the Render platform.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-07-01 14:08:35 +00:00 committed by GitHub
commit d5c4c2be65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 16 deletions

View file

@ -1,15 +1,3 @@
FROM python:3.10-slim
FROM langflowai/langflow:latest
RUN apt-get update && apt-get install gcc g++ git make -y && apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
RUN pip install langflow>==0.5.0 -U --user
CMD ["python", "-m", "langflow", "run", "--host", "0.0.0.0", "--port", "7860"]
ENTRYPOINT ["python", "-m", "langflow", "run"]

View file

@ -3,14 +3,16 @@ services:
- type: web
name: langflow
runtime: docker
dockerfilePath: ./docker/render.pre-release.Dockerfile
dockerfilePath: ./docker/render.Dockerfile
repo: https://github.com/langflow-ai/langflow
branch: dev
branch: main
healthCheckPath: /health
autoDeploy: false
envVars:
- key: LANGFLOW_DATABASE_URL
value: sqlite:////home/user/.cache/langflow/langflow.db
- key: LANGFLOW_HOST
value: 0.0.0.0
disk:
name: langflow-data
mountPath: /home/user/.cache/langflow