fix(build): fix DB dockerfile#2344
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile OverviewGreptile SummaryRemoved the
Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Build as Docker Build
participant Base as Base Stage
participant Deps as Dependencies Stage
participant Runner as Runner Stage
Build->>Base: FROM oven/bun:1.3.3-alpine
Build->>Deps: FROM base AS deps
Deps->>Deps: COPY package.json, bun.lock, turbo.json
Deps->>Deps: COPY packages/db/package.json
Note over Deps: Changed: bun install --ignore-scripts<br/>(removed --frozen-lockfile)
Deps->>Deps: Install dependencies with cache mount
Build->>Runner: FROM base AS runner
Runner->>Runner: Create non-root user (nodejs/nextjs)
Runner->>Deps: COPY node_modules from deps stage
Runner->>Runner: COPY drizzle.config.ts
Runner->>Runner: COPY packages/db source code
Runner->>Runner: Switch to non-root user
Runner->>Runner: Set working directory to /app/packages/db
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--frozen-lockfileflag doesn't work well in Docker's partial workspace contextType of Change
Testing
Tested manually
Checklist