From ace594bbd586f779ef4990fc308f66d92cb4d864 Mon Sep 17 00:00:00 2001 From: skidoodle Date: Sun, 21 Dec 2025 22:31:17 +0100 Subject: [PATCH] fuck tls --- Dockerfile | 12 +++++++++--- bun.lock | 36 ++++++++++++++++++------------------ src/utils/http-agent.ts | 1 + 3 files changed, 28 insertions(+), 21 deletions(-) diff --git a/Dockerfile b/Dockerfile index c84a0b0..7773acc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM oven/bun:1 AS base WORKDIR /app FROM base AS deps +WORKDIR /app COPY package.json bun.lock* ./ RUN bun install --no-save --frozen-lockfile @@ -14,12 +15,17 @@ RUN bun run build FROM base AS runner WORKDIR /app + +ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 -ENV NODE_ENV=production \ - PORT=3000 \ - HOSTNAME="0.0.0.0" +ENV PORT=3000 +ENV HOSTNAME=0.0.0.0 + +ENV NODE_TLS_REJECT_UNAUTHORIZED=0 + RUN groupadd --system --gid 1001 nodejs && \ useradd --system --uid 1001 -g nodejs nextjs + COPY --from=builder /app/public ./public COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static diff --git a/bun.lock b/bun.lock index 23843e8..a836aa4 100644 --- a/bun.lock +++ b/bun.lock @@ -5,26 +5,26 @@ "": { "name": "erettsegi-browser", "dependencies": { - "@heroui/react": "^2.8.7", - "framer-motion": "^12.23.26", - "next": "16.1.0", - "next-themes": "^0.4.6", - "react": "19.2.3", - "react-dom": "19.2.3", - "react-icons": "^5.5.0", - "undici": "^7.16.0", + "@heroui/react": "latest", + "framer-motion": "latest", + "next": "latest", + "next-themes": "latest", + "react": "latest", + "react-dom": "latest", + "react-icons": "latest", + "undici": "latest", }, "devDependencies": { - "@biomejs/biome": "2.3.10", - "@tailwindcss/postcss": "^4.1.18", - "@types/node": "25.0.3", - "@types/react": "19.2.7", - "@types/react-dom": "19.2.3", - "postcss": "8.5.6", - "prettier": "^3.7.4", - "prettier-plugin-tailwindcss": "^0.7.2", - "tailwindcss": "^4.1.18", - "typescript": "5.9.3", + "@biomejs/biome": "latest", + "@tailwindcss/postcss": "latest", + "@types/node": "latest", + "@types/react": "latest", + "@types/react-dom": "latest", + "postcss": "latest", + "prettier": "latest", + "prettier-plugin-tailwindcss": "latest", + "tailwindcss": "latest", + "typescript": "latest", }, }, }, diff --git a/src/utils/http-agent.ts b/src/utils/http-agent.ts index 02ac961..6368b67 100644 --- a/src/utils/http-agent.ts +++ b/src/utils/http-agent.ts @@ -3,5 +3,6 @@ import { Agent } from "undici"; export const insecureAgent = new Agent({ connect: { rejectUnauthorized: false, + }, });