From e3fcdee03d5487700a3dd77cd345fa03df30f7f2 Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Mon, 25 Nov 2024 09:32:04 -0700 Subject: [PATCH] fix(examples): remove `--filter` from `with-docker` example. (#9513) ### Description `--filter` isn't needed after running `prune` since the target from the prune is the only application in the pruned workspace. This was confusing someone in https://github.com/vercel/turborepo/discussions/9496. --- docs/repo-docs/guides/tools/docker.mdx | 4 ++-- examples/with-docker/apps/api/Dockerfile | 2 +- examples/with-docker/apps/web/Dockerfile | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/repo-docs/guides/tools/docker.mdx b/docs/repo-docs/guides/tools/docker.mdx index 68c4ea3b3d327..1fbf481f67262 100644 --- a/docs/repo-docs/guides/tools/docker.mdx +++ b/docs/repo-docs/guides/tools/docker.mdx @@ -167,7 +167,7 @@ RUN yarn install # Build the project COPY --from=builder /app/out/full/ . -RUN yarn turbo run build --filter=web... +RUN yarn turbo run build FROM base AS runner WORKDIR /app @@ -201,7 +201,7 @@ ENV TURBO_TEAM=$TURBO_TEAM ARG TURBO_TOKEN ENV TURBO_TOKEN=$TURBO_TOKEN -RUN yarn turbo run build --filter=web... +RUN yarn turbo run build ``` `turbo` will now be able to hit your Remote Cache. To see a Turborepo cache hit for a non-cached Docker build image, run a command like this one from your project root: diff --git a/examples/with-docker/apps/api/Dockerfile b/examples/with-docker/apps/api/Dockerfile index fcaa5c0059166..ddeb0d6c4c977 100644 --- a/examples/with-docker/apps/api/Dockerfile +++ b/examples/with-docker/apps/api/Dockerfile @@ -33,7 +33,7 @@ COPY --from=builder /app/out/full/ . # ARG TURBO_TOKEN # ENV TURBO_TOKEN=$TURBO_TOKEN -RUN yarn turbo build --filter=api... +RUN yarn turbo build FROM base AS runner WORKDIR /app diff --git a/examples/with-docker/apps/web/Dockerfile b/examples/with-docker/apps/web/Dockerfile index 6e57865bc865e..158fe5d66e4cc 100644 --- a/examples/with-docker/apps/web/Dockerfile +++ b/examples/with-docker/apps/web/Dockerfile @@ -33,7 +33,7 @@ COPY --from=builder /app/out/full/ . # ARG TURBO_TOKEN # ENV TURBO_TOKEN=$TURBO_TOKEN -RUN yarn turbo build --filter=web... +RUN yarn turbo build FROM base AS runner WORKDIR /app