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:
commit
d5c4c2be65
2 changed files with 6 additions and 16 deletions
|
|
@ -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 \
|
ENTRYPOINT ["python", "-m", "langflow", "run"]
|
||||||
&& 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"]
|
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,16 @@ services:
|
||||||
- type: web
|
- type: web
|
||||||
name: langflow
|
name: langflow
|
||||||
runtime: docker
|
runtime: docker
|
||||||
dockerfilePath: ./docker/render.pre-release.Dockerfile
|
dockerfilePath: ./docker/render.Dockerfile
|
||||||
repo: https://github.com/langflow-ai/langflow
|
repo: https://github.com/langflow-ai/langflow
|
||||||
branch: dev
|
branch: main
|
||||||
healthCheckPath: /health
|
healthCheckPath: /health
|
||||||
autoDeploy: false
|
autoDeploy: false
|
||||||
envVars:
|
envVars:
|
||||||
- key: LANGFLOW_DATABASE_URL
|
- key: LANGFLOW_DATABASE_URL
|
||||||
value: sqlite:////home/user/.cache/langflow/langflow.db
|
value: sqlite:////home/user/.cache/langflow/langflow.db
|
||||||
|
- key: LANGFLOW_HOST
|
||||||
|
value: 0.0.0.0
|
||||||
disk:
|
disk:
|
||||||
name: langflow-data
|
name: langflow-data
|
||||||
mountPath: /home/user/.cache/langflow
|
mountPath: /home/user/.cache/langflow
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue