Make SITE_URL and AUTH_SECRET configurable via environment variables for any deployment

This commit is contained in:
2025-10-01 23:12:22 -04:00
parent bd33432721
commit 966f1bae5d
4 changed files with 70 additions and 14 deletions

View File

@@ -14,13 +14,21 @@ COPY . .
# Create data directory for SQLite database
RUN mkdir -p /app/data
# Accept build arguments
ARG SITE_URL=https://nlcc.rydertech.us
ARG AUTH_SECRET
# Set environment variables for build
ENV SITE_URL=$SITE_URL
ENV AUTH_SECRET=$AUTH_SECRET
# Build the application
RUN npm run build
# Expose port
EXPOSE 3000
# Set environment variables
# Set runtime environment variables
ENV NODE_ENV=production
ENV NUXT_HOST=0.0.0.0
ENV NUXT_PORT=3000