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:
@@ -4,6 +4,7 @@ FROM node:20-slim AS base
|
|||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
curl \
|
curl \
|
||||||
|
unzip \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install Bun
|
# Install Bun
|
||||||
@@ -34,6 +35,8 @@ COPY --chown=nodeuser:nodeuser . ./
|
|||||||
ARG NODE_ENV=production
|
ARG NODE_ENV=production
|
||||||
|
|
||||||
# Only essential runtime variables that override unified config defaults
|
# 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_URL
|
||||||
ARG VITE_COUCHDB_USER
|
ARG VITE_COUCHDB_USER
|
||||||
ARG VITE_COUCHDB_PASSWORD
|
ARG VITE_COUCHDB_PASSWORD
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ server {
|
|||||||
gzip on;
|
gzip on;
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
gzip_min_length 1024;
|
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
|
gzip_types
|
||||||
text/plain
|
text/plain
|
||||||
text/css
|
text/css
|
||||||
|
|||||||
Reference in New Issue
Block a user