agent-flow / docker /dev.Dockerfile
Tai Truong
fix readme
d202ada
raw
history blame contribute delete
884 Bytes
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
ENV TZ=UTC
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
npm \
&& 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"]