slight updates

This commit is contained in:
Alexander Harding
2026-07-31 20:23:38 -04:00
parent 9adaca1c7d
commit 6114d34c22
2 changed files with 7 additions and 8 deletions
+7 -6
View File
@@ -1,14 +1,15 @@
## syntax=docker/dockerfile:1.7
# ---- deps ----
FROM node:22-alpine AS deps
RUN apk add --no-cache libc6-compat
FROM node:22-slim AS deps
RUN apt-get update && apt-get install -y --no-install-recommends libc6 openssl ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci --no-audit --no-fund
# ---- build ----
FROM node:22-alpine AS builder
FROM node:22-slim AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
@@ -16,15 +17,15 @@ ENV NEXT_TELEMETRY_DISABLED=1
RUN npm run build
# ---- runner ----
FROM node:22-alpine AS runner
FROM node:22-slim AS runner
WORKDIR /app
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
ENV PORT=3000
ENV HOSTNAME=0.0.0.0
RUN addgroup --system --gid 1001 nodejs \
&& adduser --system --uid 1001 nextjs
RUN groupadd --system --gid 1001 nodejs \
&& useradd --system --uid 1001 --gid nodejs nextjs
# Standalone output copies only what's needed at runtime.
COPY --from=builder /app/public ./public
-2
View File
@@ -24,8 +24,6 @@ services:
NODE_ENV: production
MONGODB_URI: ${MONGODB_URI:-mongodb://mongo:27017/dndextended}
AUTH_SECRET: ${AUTH_SECRET}
AUTH_URL: ${AUTH_URL}
AUTH_TRUST_HOST: ${AUTH_TRUST_HOST:-true}
depends_on:
mongo:
condition: service_healthy