diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..59e177b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ +.git +.file-versions +.od-skills +.playwright-mcp +*.artifact.json +.DS_Store +brand-spec.md +Dockerfile +.dockerignore diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..481f4f0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM nginx:1.27-alpine + +RUN rm -rf /usr/share/nginx/html/* + +COPY *.html /usr/share/nginx/html/ +COPY *.png /usr/share/nginx/html/ +COPY nginx.conf /etc/nginx/conf.d/default.conf + +EXPOSE 80 + +HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ + CMD wget -qO- http://127.0.0.1/ || exit 1 + +CMD ["nginx", "-g", "daemon off;"] diff --git a/index.html b/index.html index 5fe404f..37ba9fe 100644 --- a/index.html +++ b/index.html @@ -298,7 +298,7 @@
- MagBeast magnetic drill press — technical schematic, two-view orthographic drawing with 14 labelled parts, dimensioned in millimetres. + MagBeast magnetic drill press — technical schematic, two-view orthographic drawing with 14 labelled parts, dimensioned in millimetres.
@@ -415,23 +415,23 @@
- +
MagBeast® · Drills
- +
MiniBeast™ · Cordless
- +
SteelBeast® · Industrial
- +
Turbo™ · Cutters
- +
AirBeast® · Pneumatic
diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..5ef7711 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,20 @@ +server { + listen 80; + server_name _; + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ $uri.html =404; + } + + location ~* \.(png|jpg|jpeg|gif|ico|svg|webp)$ { + expires 30d; + add_header Cache-Control "public, immutable"; + } + + gzip on; + gzip_vary on; + gzip_min_length 256; + gzip_types text/plain text/css application/javascript text/html image/svg+xml; +}