fix: hoist sharp for remix server runtime and drop patches from docker build

The remix server bundle externalizes sharp and resolves it from the
workspace root, but the lockfile left it nested under packages/lib.
Declaring it at the root guarantees the hoist. Also removes the
Dockerfile patch directory copies now that no patches remain.
This commit is contained in:
Lucas Smith
2026-08-17 22:01:33 +10:00
parent 22aec1d989
commit 469fdc20fc
3 changed files with 548 additions and 1645 deletions
-3
View File
@@ -76,7 +76,6 @@ COPY --from=builder /app/out/json/ .
COPY --from=builder /app/out/package-lock.json ./package-lock.json
COPY --from=builder /app/lingui.config.ts ./lingui.config.ts
COPY --from=builder /app/patches ./patches
RUN npm ci
@@ -115,8 +114,6 @@ WORKDIR /app
COPY --from=builder --chown=nodejs:nodejs /app/out/json/ .
# Copy the tailwind config files across
COPY --from=builder --chown=nodejs:nodejs /app/out/full/packages/tailwind-config ./packages/tailwind-config
# Copy the patches across
COPY --from=builder --chown=nodejs:nodejs /app/patches ./patches
RUN npm ci --only=production
+547 -1642
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -130,6 +130,7 @@
"posthog-node": "4.18.0",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"sharp": "0.35.3",
"typescript": "5.6.2",
"@marsidev/react-turnstile": "^1.5.0",
"zod": "^3.25.76"