Updated code so it doenst build on server

This commit is contained in:
2025-09-05 13:35:48 +02:00
parent 778dcd8eb4
commit 700fa40416
8 changed files with 22 additions and 10 deletions

View File

@@ -7,6 +7,8 @@ RUN bun i --frozen-lockfile
COPY . .
ENV NEXT_TELEMETRY_DISABLED=1
ENV NODE_ENV=production
ENV DOCKER=1
RUN bun run build
RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs && chown -R nextjs:nodejs .
@@ -15,4 +17,4 @@ EXPOSE 3000
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"
CMD ["bun", "container:build"]
CMD ["bun", "container"]