Mirror www.mitsuthailand.com as static site with dynamic URLs
- Full static mirror of the YellowPages/Drupal site (39 pages + all assets) - All URLs rewritten to relative/domain-agnostic form (works on any domain) - RFQ + request-quotation + contact forms converted to email (FormSubmit.co) - Google Maps embed replaced with static Google Maps iframe - nginx Dockerfile + config for EasyPanel deployment - mirror.py/rewrite.py/cleanup.py tooling for re-crawling updates
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
# Static mirror of www.mitsuthailand.com (บริษัท มิตซูชัยพร จำกัด ศูนย์มิตซูบิชิ สมุทรสาคร)
|
||||
# Serves the mirrored static site with nginx.
|
||||
# Host: lightweight, no backend. Works on any domain (all URLs are relative).
|
||||
|
||||
FROM nginx:1.27-alpine
|
||||
|
||||
# Remove default nginx site
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
|
||||
# Copy the mirrored static site
|
||||
COPY site/ /usr/share/nginx/html/
|
||||
|
||||
# Custom nginx config: SPA-style clean URLs handled by directory/index.html,
|
||||
# plus reasonable caching for assets.
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=3s --retries=3 \
|
||||
CMD wget -q -O /dev/null http://localhost/ || exit 1
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user