From dff9d9f0d91525154c660b80dee6801c86fb64ae Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Wed, 1 Jan 2025 15:10:01 +0000 Subject: [PATCH] remove next stuff --- Dockerfile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6988228..80097de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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