mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 10:55:57 +00:00
Add GHCR image push step to deploy-docs workflow so docs.hanzo.ai can be served from K8s in addition to Cloudflare Pages.
6 lines
343 B
Docker
6 lines
343 B
Docker
FROM nginx:alpine
|
|
COPY out/ /usr/share/nginx/html/
|
|
RUN printf 'server {\n listen 3000;\n root /usr/share/nginx/html;\n index index.html;\n location / {\n try_files $uri $uri.html $uri/ /404.html;\n }\n location /health {\n return 200 "ok";\n }\n}\n' > /etc/nginx/conf.d/default.conf
|
|
EXPOSE 3000
|
|
CMD ["nginx", "-g", "daemon off;"]
|