This commit is contained in:
2026-02-26 09:23:34 +01:00
parent 66e8eb0cee
commit 9265ae4773
2 changed files with 6 additions and 6 deletions

View File

@@ -1,11 +1,11 @@
FROM nginx:alpine
FROM nginx:alpine [cite: 1]
RUN rm -rf /usr/share/nginx/html/*
COPY ["Dekra WebSite", "/usr/share/nginx/html"]
COPY webapp/ /usr/share/nginx/html
COPY vhost.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
EXPOSE 80 [cite: 1]
CMD ["nginx", "-g", "daemon off;"]

View File

@@ -9,7 +9,7 @@ server {
try_files $uri $uri/ $uri.html =404;
}
location ~* \.(jpg|jpeg|png|gif|ico|css|js|mp4|webm)$ {
location ~* \.(jpg|jpeg|png|gif|ico|css|js|json|mp4|webm)$ {
expires 30d;
add_header Cache-Control "public, no-transform";
}