langflow/docker/dev.Dockerfile
Mattias Michaux cdf85e55de
fix: add the git binary to the final step of the container images (#5863)
Add the git binary to the runtime images
2025-01-22 15:07:34 +00:00

31 lines
928 B
Docker

FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
ENV TZ=UTC
WORKDIR /app
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
build-essential \
curl \
npm \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY . /app
# Install dependencies using uv
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=README.md,target=README.md \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
--mount=type=bind,source=src/backend/base/README.md,target=src/backend/base/README.md \
--mount=type=bind,source=src/backend/base/uv.lock,target=src/backend/base/uv.lock \
--mount=type=bind,source=src/backend/base/pyproject.toml,target=src/backend/base/pyproject.toml \
uv sync --frozen --no-install-project --no-dev
EXPOSE 7860
EXPOSE 3000
CMD ["./docker/dev.start.sh"]