From eec7f473a863bfb83cfea32330c53b73528d1ccd Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Sat, 6 Dec 2025 18:20:06 +0100 Subject: [PATCH] Add Docker configuration for self-hosted deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add Dockerfile with nginx for static file serving - Add docker-compose.yml with Traefik labels - Removes unused Tailwind dependencies during build 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- Dockerfile | 41 +++++++++++++++++++++++++++++++++++++++++ docker-compose.yml | 16 ++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..367d3c8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,41 @@ +# Build stage +FROM node:20-alpine AS builder + +WORKDIR /app + +COPY package*.json ./ +RUN npm ci + +COPY . . + +# Remove tailwind postcss config and delete tailwindcss to prevent auto-detection +RUN rm -f postcss.config.js tailwind.config.js +RUN npm uninstall tailwindcss @tailwindcss/postcss 2>/dev/null || true + +RUN npm run build + +# Production stage +FROM nginx:alpine + +COPY --from=builder /app/build /usr/share/nginx/html +COPY <