Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion deploy/selfhost/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certifi
&& dpkg -i /tmp/gh.deb && rm /tmp/gh.deb \
&& apt-get purge -y curl && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
COPY --from=build /runtime/node_modules ./node_modules
COPY --from=build /app/.next ./.next
# The runtime writes .next/server/route-cache (and image-optimizer caches under
# .next/cache) as node, so the copied tree must be node-owned. Root-owned, the server
# logs EACCES on every prerender-cache update and never writes the cache.
COPY --chown=node:node --from=build /app/.next ./.next
COPY package.json pnpm-lock.yaml next.config.ts tsconfig.json instrumentation.ts ./
COPY bin ./bin
# lib/ source must ship: the stream proxy dynamically imports ./phone-control.ts outside
Expand Down