Fix Dockerfile: use useradd instead of adduser for bun image
This commit is contained in:
parent
c88d4ba1a8
commit
40b4402398
@ -14,7 +14,7 @@ RUN bun run build
|
|||||||
FROM base AS runner
|
FROM base AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
RUN adduser --system --uid 1001 nextjs
|
RUN useradd --system --uid 1001 nextjs
|
||||||
COPY --from=builder /app/public ./public
|
COPY --from=builder /app/public ./public
|
||||||
COPY --from=builder --chown=1001:1001 /app/.next/standalone ./
|
COPY --from=builder --chown=1001:1001 /app/.next/standalone ./
|
||||||
COPY --from=builder --chown=1001:1001 /app/.next/static ./.next/static
|
COPY --from=builder --chown=1001:1001 /app/.next/static ./.next/static
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user