Enhance environment variable handling and Dockerfile configuration
- Introduced a utility function to preprocess environment variables, converting empty strings, undefined, or null values to undefined for better validation in EnvSchema. - Updated Dockerfile to set PORT and HOSTNAME environment variables for improved container configuration. - Revised PHASE-TRACKING.md to include automated deployment verification steps, ensuring a smoother deployment process.
This commit is contained in:
@@ -40,6 +40,8 @@ RUN pnpm --filter @nexumi/webui build
|
||||
|
||||
FROM base AS runner
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3000
|
||||
ENV HOSTNAME=0.0.0.0
|
||||
COPY --from=build /app/apps/webui/.next/standalone ./
|
||||
COPY --from=build /app/apps/webui/.next/static ./apps/webui/.next/static
|
||||
COPY --from=build /app/apps/webui/public ./apps/webui/public
|
||||
|
||||
Reference in New Issue
Block a user