Skip to content

Commit

Permalink
remove next stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Jan 1, 2025
1 parent 0410c61 commit dff9d9f
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,22 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .

ENV NEXT_TELEMETRY_DISABLED 1
ARG VITE_PUBLIC_GIT_SHA
ENV VITE_PUBLIC_GIT_SHA $VITE_PUBLIC_GIT_SHA

RUN bun run build


# Production image, copy all the files and run next
# Production image, copy all the files and run
FROM base AS runner
WORKDIR /app

ENV NEXT_TELEMETRY_DISABLED 1

RUN addgroup --system --gid 1001 bunjs
RUN adduser --system --uid 1001 nextjs
RUN adduser --system --uid 1001 webapp

#COPY --from=builder /app/public ./public

# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder --chown=nextjs:bunjs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:bunjs /app/.next/static ./.next/static

USER nextjs
USER webapp

EXPOSE 3000

Expand Down

0 comments on commit dff9d9f

Please sign in to comment.