Skip to content

Commit e3fcdee

Browse files
authored
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 #9496.
1 parent b00eea2 commit e3fcdee

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/repo-docs/guides/tools/docker.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ RUN yarn install
167167
168168
# Build the project
169169
COPY --from=builder /app/out/full/ .
170-
RUN yarn turbo run build --filter=web...
170+
RUN yarn turbo run build
171171
172172
FROM base AS runner
173173
WORKDIR /app
@@ -201,7 +201,7 @@ ENV TURBO_TEAM=$TURBO_TEAM
201201
ARG TURBO_TOKEN
202202
ENV TURBO_TOKEN=$TURBO_TOKEN
203203
204-
RUN yarn turbo run build --filter=web...
204+
RUN yarn turbo run build
205205
```
206206

207207
`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:

examples/with-docker/apps/api/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ COPY --from=builder /app/out/full/ .
3333
# ARG TURBO_TOKEN
3434
# ENV TURBO_TOKEN=$TURBO_TOKEN
3535

36-
RUN yarn turbo build --filter=api...
36+
RUN yarn turbo build
3737

3838
FROM base AS runner
3939
WORKDIR /app

examples/with-docker/apps/web/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ COPY --from=builder /app/out/full/ .
3333
# ARG TURBO_TOKEN
3434
# ENV TURBO_TOKEN=$TURBO_TOKEN
3535

36-
RUN yarn turbo build --filter=web...
36+
RUN yarn turbo build
3737

3838
FROM base AS runner
3939
WORKDIR /app

0 commit comments

Comments
 (0)