Navigate privacy laws with feline precision — detect every boundary, respect every territory! GDPR compliance and privacy protection for WordPress. - Cookie consent management - Privacy boundary detection - GDPR-compliant analytics gating - Cross-plugin consent coordination (integrates with TigerStyle Heat) - Visitor preference tracking - Configurable cookie categories Includes build.sh and .distignore for WordPress-installable release ZIPs.
38 lines
789 B
Docker
38 lines
789 B
Docker
# TigerStyle Whiskers Documentation Site
|
|
# Multi-stage build for production optimization
|
|
|
|
# Build stage
|
|
FROM node:18-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package files
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm ci --only=production
|
|
|
|
# Copy source code
|
|
COPY . .
|
|
|
|
# Build the site
|
|
RUN npm run build
|
|
|
|
# Production stage
|
|
FROM caddy:2-alpine AS production
|
|
|
|
# Copy built site from builder stage
|
|
COPY --from=builder /app/dist /usr/share/caddy
|
|
|
|
# Copy Caddyfile
|
|
COPY Caddyfile /etc/caddy/Caddyfile
|
|
|
|
# Health check
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|
CMD wget --quiet --tries=1 --spider http://localhost:80/health || exit 1
|
|
|
|
# Expose port
|
|
EXPOSE 80
|
|
|
|
# Start Caddy
|
|
CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"] |