From 9265ae47737ad8e0a10c5ba02f0cea70ab95cffa Mon Sep 17 00:00:00 2001 From: Ihor_Zhekov Date: Thu, 26 Feb 2026 09:23:34 +0100 Subject: [PATCH] 1 --- Dockerfile | 10 +++++----- vhost.conf | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 21ae61a..4af1345 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM nginx:alpine +FROM nginx:alpine [cite: 1] -RUN rm -rf /usr/share/nginx/html/* +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 +COPY vhost.conf /etc/nginx/conf.d/default.conf -EXPOSE 80 +EXPOSE 80 [cite: 1] CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/vhost.conf b/vhost.conf index 32b56cb..d562b30 100644 --- a/vhost.conf +++ b/vhost.conf @@ -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"; }