fix: prevent nginx default page in hugo image
Some checks failed
Deploy Hugo Blog to k3s / build-and-deploy (push) Failing after 24s
Some checks failed
Deploy Hugo Blog to k3s / build-and-deploy (push) Failing after 24s
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
FROM docker.m.daocloud.io/library/nginx:alpine
|
||||
COPY public/ /usr/share/nginx/html
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user