- Dockerfile: nginx:1.27-alpine, copies static files + nginx.conf - nginx.conf: gzip, long cache for images, short cache for HTML/JS, SPA fallback to index.html (hash router handles /#/projects/<slug>) - docker-compose.yml: restart unless-stopped, healthcheck on :43036 - README: docker compose up -d --build Keeps port 43036 so the existing nginx-proxy-manager route for wilddragon.net (-> :43036) keeps working without reconfig.
12 lines
361 B
Docker
12 lines
361 B
Docker
FROM nginx:1.27-alpine
|
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
WORKDIR /usr/share/nginx/html
|
|
COPY index.html standalone.html styles.css data.js projects-data.js components.jsx tweaks-panel.jsx llms.txt ./
|
|
COPY images ./images
|
|
|
|
EXPOSE 43036
|
|
|
|
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
|
|
CMD wget -q --spider http://localhost:43036/ || exit 1
|