rsundaraws's picture
Serve over nginx as a docker Space so the plain *.hf.space host exists
cb94927 verified
Raw History Blame Contribute Delete
360 Bytes
# Static figure served over the plain *.hf.space host. A `static` Space is only
# reachable at *.static.hf.space, which the Hub does not allowlist for iframes,
# so the blog embed needs a docker Space instead.
FROM nginxinc/nginx-unprivileged:alpine
COPY index.html /usr/share/nginx/html/index.html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 8080