Archived
d79a7a9708
Serve a single self-contained page from nginx while the marketing site is rebuilt, so the domain shows the Neuron brand rather than a stale product site. Inline the real wordmark and favicon as data URIs to keep the page free of external requests and safe under a strict CSP.
16 lines
448 B
Docker
16 lines
448 B
Docker
FROM nginx:alpine
|
|
|
|
# Cloud Run injects PORT (8080). nginx:alpine's entrypoint runs envsubst over
|
|
# /etc/nginx/templates/*.template into /etc/nginx/conf.d/ before starting nginx.
|
|
ENV PORT=8080
|
|
ENV NGINX_ENVSUBST_TEMPLATE_SUFFIX=.template
|
|
|
|
RUN rm -f /etc/nginx/conf.d/default.conf
|
|
|
|
COPY default.conf.template /etc/nginx/templates/default.conf.template
|
|
COPY index.html /usr/share/nginx/html/index.html
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|