From 1d37105e4b4423c1de1f6cb6092fef58ac6a1154 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 18 Jul 2026 16:18:34 +0000 Subject: [PATCH] Add Dockerfile and docker-compose for production deployment Multi-stage build: Node 20 builds the React app, nginx serves the static files on port 3000. Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01DReRqHxSYuVfCzTzQGD9hZ --- Dockerfile | 11 +++++++++++ docker-compose.yml | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..25db863 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM node:20-alpine AS build +WORKDIR /app +COPY package*.json ./ +RUN npm ci +COPY . . +RUN npm run build + +FROM nginx:alpine +COPY --from=build /app/build /usr/share/nginx/html +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6a89a1e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,5 @@ +services: + prayer: + build: . + ports: + - "3000:80"