Skip to content

Commit

Permalink
docs: add package.json and turbo.json to a pruned directory example (v…
Browse files Browse the repository at this point in the history
…ercel#3666)

I fixed two mistakes.
- `./out/json` has `package.json` and `./out/full` has `package.json` and `turbo.json` in fact.
- You don't need to copy `turbo.json` manually in Dockerfile because `turbo.json` is already copied in [the previous line](https://github.com/vercel/turbo/compare/main...m-shaka:turbo:docs/fix-pruned-directory-structure?expand=1#diff-3d80bc97cc73148cf5956531eb631ce3e7f58860e778c4b52cf2e3499f4c4f05R139)
  • Loading branch information
m-shaka authored Feb 7, 2023
1 parent a9b9da2 commit a3034a5
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docs/pages/repo/docs/handbook/deploying-with-docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,17 @@ First, we want to copy over only what we need to install the packages. When runn
```txt
out
├── json
│ └── apps
│ └── docs
│ └── package.json
│ ├── apps
│ │ └── docs
│ │ └── package.json
│ └── package.json
├── full
│ └── apps
│ └── docs
│ ├── server.js
│ └── package.json
│ ├── apps
│ │ └── docs
│ │ ├── server.js
│ │ └── package.json
│ ├── package.json
│ └── turbo.json
└── package-lock.json
```

Expand Down Expand Up @@ -134,7 +137,6 @@ RUN yarn install
# Build the project
COPY --from=builder /app/out/full/ .
COPY turbo.json turbo.json
RUN yarn turbo run build --filter=web...
FROM node:alpine AS runner
Expand Down

0 comments on commit a3034a5

Please sign in to comment.