Spaces:
Paused
Paused
Gabriel Luiz Freitas Almeida commited on
Update Dockerfile
Browse files1234567891011121314151617181920212223FROM python:3.10-slimRUN apt-get update && apt-get install gcc g++ git make -yRUN useradd -m -u 1000 user# Create the directory and set the permissionsRUN mkdir -p /home/langflow && chown user:user /home/langflowUSER userENV HOME=/home/user \PATH=/home/user/.local/bin:$PATH \LANGFLOW_DATABASE_URL=sqlite:////home/langflow/langflow.db \LANGFLOW_AUTO_LOGIN=TrueWORKDIR $HOME/appCOPY --chown=user . $HOME/appRUN pip install langflow --pre -U --userCMD python -m langflow run --host 0.0.0.0 --port 7860 --log-level debug12345678910111213141516171819202122232425262728293031FROM nikolaik/python-nodejs:python3.10-nodejs21USER root# Update and install required packagesRUN apt-get update && apt-get install gcc g++ git make pipx -yENV LANGFLOW_HOME=/home/pn/langflow \PATH=/root/.local/bin:$PATHENV LANGFLOW_DATABASE_URL=sqlite:////home/pn/langflow.db# Clone the langflow repository and switch to the dev branchADD https://api.github.com/repos/logspace-ai/langflow/git/refs/heads/db version.jsonRUN git clone https://github.com/logspace-ai/langflow.git $LANGFLOW_HOME \&& cd $LANGFLOW_HOME \&& git checkout dev && git pull# Copy the code into the containerRUN chown -R pn:pn $LANGFLOW_HOMEUSER pnWORKDIR $LANGFLOW_HOME# Create logs directoryRUN mkdir logs && chmod 777 logsRUN pipx install poetryRUN make install_frontend && make build_frontend && make install_backendCMD ["make", "start", "host=0.0.0.0", "port=7860", "log_level=debug", "path=/home/pn/langflow/src/backend/base/langflow/frontend"]
Dockerfile+23-15