Vite + React + Tailwind site with a scroll-scrubbed drone fly-through, services, projects, company, team and contact sections, plus a Dockerfile + nginx config for Coolify deployment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
450 B
Docker
14 lines
450 B
Docker
# Mega Infrastructure website: build the Vite app, serve the static output with nginx.
|
|
|
|
FROM node:22.11.0-alpine AS build
|
|
WORKDIR /app
|
|
COPY app/package.json app/package-lock.json ./
|
|
RUN npm ci
|
|
COPY app/ ./
|
|
RUN npm run build
|
|
|
|
FROM nginx:1.27.3-alpine
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
EXPOSE 80
|
|
HEALTHCHECK --interval=30s --timeout=3s CMD wget -qO- http://127.0.0.1/ >/dev/null || exit 1
|