From 66e8eb0cee4f79d18c342558081f202d21e0d0d0 Mon Sep 17 00:00:00 2001 From: Ihor_Zhekov Date: Thu, 26 Feb 2026 09:11:59 +0100 Subject: [PATCH] s --- Dockerfile | 11 +++++++++++ vhost.conf | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 Dockerfile create mode 100644 vhost.conf diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..21ae61a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM nginx:alpine + +RUN rm -rf /usr/share/nginx/html/* + +COPY ["Dekra WebSite", "/usr/share/nginx/html"] + +COPY vhost.conf /etc/nginx/conf.d/default.conf + +EXPOSE 80 + +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/vhost.conf b/vhost.conf new file mode 100644 index 0000000..32b56cb --- /dev/null +++ b/vhost.conf @@ -0,0 +1,16 @@ +server { + listen 80; + server_name localhost; + + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ $uri.html =404; + } + + location ~* \.(jpg|jpeg|png|gif|ico|css|js|mp4|webm)$ { + expires 30d; + add_header Cache-Control "public, no-transform"; + } +} \ No newline at end of file