fix: resolve Docker build and nginx configuration issues

- Add unzip package to Dockerfile for Bun installation
- Fix nginx.conf gzip_proxied directive (remove invalid 'must-revalidate')
- Add comment acknowledging password warning in Dockerfile
- Docker build now completes successfully and nginx starts without errors
This commit is contained in:
William Valentin
2025-09-08 21:53:08 -07:00
parent 9b854f75d5
commit a76f94fba7
2 changed files with 4 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ FROM node:20-slim AS base
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Install Bun
@@ -34,6 +35,8 @@ COPY --chown=nodeuser:nodeuser . ./
ARG NODE_ENV=production
# Only essential runtime variables that override unified config defaults
# Note: VITE_COUCHDB_PASSWORD in ARG/ENV is acceptable for development builds
# In production, use secrets management instead of build-time arguments
ARG VITE_COUCHDB_URL
ARG VITE_COUCHDB_USER
ARG VITE_COUCHDB_PASSWORD

View File

@@ -8,7 +8,7 @@ server {
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_proxied expired no-cache no-store private must-revalidate auth;
gzip_proxied expired no-cache no-store private auth;
gzip_types
text/plain
text/css