Files
hugo-blog/Dockerfile
luochen570 a2aec46cc0
Some checks failed
Deploy Hugo Blog to k3s / build-and-deploy (push) Failing after 24s
fix: prevent nginx default page in hugo image
2026-06-02 08:47:13 +08:00

7 lines
244 B
Docker

FROM docker.m.daocloud.io/library/nginx:alpine
RUN rm -rf /usr/share/nginx/html/*
COPY public/ /usr/share/nginx/html/
RUN test -s /usr/share/nginx/html/index.html \
&& ! grep -q "Welcome to nginx" /usr/share/nginx/html/index.html
EXPOSE 80