langflow/Dockerfile
Gabriel Luiz Freitas Almeida 7b165ad5d2 🐛 fix(Dockerfile): remove unnecessary files after installing dependencies
🚀 chore(pyproject.toml): rename dev-dependencies to dev.dependencies
The Dockerfile now removes unnecessary files after installing dependencies to reduce the image size. The pyproject.toml file now uses the correct naming convention for dev dependencies, which is dev.dependencies instead of dev-dependencies.
2023-06-19 11:24:03 -03:00

15 lines
393 B
Docker

FROM python:3.10-slim
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.0.86 -U --user
CMD ["python", "-m", "langflow", "--host", "0.0.0.0", "--port", "7860"]