From 1359fed099947f04de0a5db69c5960b6028b5a7f Mon Sep 17 00:00:00 2001 From: Ilya Nikokoshev Date: Tue, 26 Dec 2023 02:59:12 +0100 Subject: [PATCH] Only make a small nginx config change --- Dockerfile | 3 ++- mime.types | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 mime.types diff --git a/Dockerfile b/Dockerfile index 88a3348..529561b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,7 @@ RUN ["zola", "build"] # Run web server FROM registry.cluster.megaver.se/hub.docker.com/nginx COPY --from=zola /project/public/ /usr/share/nginx/html/ -COPY nginx.conf /etc/nginx/nginx.conf +RUN mv /etc/nginx/mime.types /etc/nginx/mime.types.original +COPY mime.types /etc/nginx/mime.types EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] diff --git a/mime.types b/mime.types new file mode 100644 index 0000000..15d68cb --- /dev/null +++ b/mime.types @@ -0,0 +1,5 @@ +include mime.types.original; + +types { + text/plain yaml tf; +}