fixed build issue

This commit is contained in:
2025-09-05 00:53:18 +02:00
parent 03204b47ee
commit 610d6b62e4
3 changed files with 5 additions and 4 deletions

View File

@@ -7,6 +7,8 @@ RUN bun i --frozen-lockfile
COPY . . COPY . .
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1
ENV NODE_ENV=production 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 . 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 PORT=3000
ENV HOSTNAME="0.0.0.0" ENV HOSTNAME="0.0.0.0"
CMD ["bun", "container:build"] CMD ["bun", "start"]

View File

@@ -5,7 +5,6 @@
"scripts": { "scripts": {
"dev": "next dev --turbopack", "dev": "next dev --turbopack",
"build": "next build --turbopack", "build": "next build --turbopack",
"container:build": "bun run build && bun start",
"start": "next start", "start": "next start",
"typegen": "next typegen", "typegen": "next typegen",
"lint": "eslint .", "lint": "eslint .",

View File

@@ -7,6 +7,6 @@ export const env = createEnv({
HYPIXEL_API_KEY: z.string().min(1) HYPIXEL_API_KEY: z.string().min(1)
}, },
experimental__runtimeEnv: true, experimental__runtimeEnv: true,
emptyStringAsUndefined: true emptyStringAsUndefined: true,
skipValidation: process.env.DOCKER === "1"
}) })