langflow/docker_example/Dockerfile
Gabriel Almeida a4158b0cb5 build(Dockerfile): update base image to python:3.10-slim
feat(Dockerfile): add gcc, g++, git, and make to apt-get install
feat(Dockerfile): add user and set environment variables
feat(Dockerfile): add WORKDIR and COPY
feat(Dockerfile): update langflow to version 0.0.71
feat(Dockerfile): add --port flag to CMD
2023-05-16 11:46:55 -03:00

14 lines
329 B
Docker

FROM python:3.10-slim
RUN apt-get update && apt-get install gcc g++ git make -y
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.71 -U --user
CMD ["langflow", "--host", "0.0.0.0", "--port", "7860"]