Skip to content

Commit 8f0ce4f

Browse files
committed
Use remoteBuild
1 parent a5902fe commit 8f0ce4f

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.azure
2+
.venv
3+
.logfire
4+
.devcontainer

agents/Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ COPY --from=ghcr.io/astral-sh/uv:0.9.14 /uv /uvx /bin/
1313

1414
WORKDIR /code
1515

16-
# Install dependencies first (for layer caching)
17-
RUN --mount=type=cache,target=/root/.cache/uv \
18-
--mount=type=bind,source=uv.lock,target=uv.lock \
19-
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
20-
uv sync --locked --no-install-project
16+
# Copy dependency files and install dependencies (for layer caching)
17+
# Note: We avoid --mount=type=cache since Azure Container Apps remote build doesn't support BuildKit
18+
COPY uv.lock pyproject.toml ./
19+
RUN uv sync --locked --no-install-project
2120

2221
# Copy the project and sync
2322
COPY . .
24-
RUN --mount=type=cache,target=/root/.cache/uv \
25-
uv sync --locked
23+
RUN uv sync --locked
2624

2725
# ------------------- Stage 2: Final Stage ------------------------------
2826
FROM python:3.13-alpine AS final

servers/Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ COPY --from=ghcr.io/astral-sh/uv:0.9.14 /uv /uvx /bin/
1313

1414
WORKDIR /code
1515

16-
# Install dependencies first (for layer caching)
17-
RUN --mount=type=cache,target=/root/.cache/uv \
18-
--mount=type=bind,source=uv.lock,target=uv.lock \
19-
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
20-
uv sync --locked --no-install-project
16+
# Copy dependency files and install dependencies (for layer caching)
17+
# Note: We avoid --mount=type=cache since Azure Container Apps remote build doesn't support BuildKit
18+
COPY uv.lock pyproject.toml ./
19+
RUN uv sync --locked --no-install-project
2120

2221
# Copy the project and sync
2322
COPY . .
24-
RUN --mount=type=cache,target=/root/.cache/uv \
25-
uv sync --locked
23+
RUN uv sync --locked
2624

2725
# ------------------- Stage 2: Final Stage ------------------------------
2826
FROM python:3.13-alpine AS final

0 commit comments

Comments
 (0)