765996e6df
- Add 8 new location pages: Cheektowaga, Depew, Grand Island, Hamburg, Kenmore, Orchard Park, Tonawanda, West Seneca (locations.sqlite) - Update service slugs to floor-* pattern; repair -> restoration (services.sqlite) - Replace static sitemap.xml with dynamic sitemap.php (35 URLs, all routes) - Dynamic footer location list from SQLite (no more hardcoded links) - Reviews page: schema.org AggregateRating + Review from testimonials.sqlite - Expand schema.org areaServed to 14 cities on all pages - Add Elfsight Google Reviews widget to reviews page - Update blog.sqlite content - Drop Dockerfile COPY for deleted sitemap.xml
36 lines
1.1 KiB
Docker
Executable File
36 lines
1.1 KiB
Docker
Executable File
FROM php:8.3-fpm-alpine
|
|
|
|
RUN apk add --no-cache nginx supervisor curl openssl tini \
|
|
&& mkdir -p /run/nginx /var/cache/nginx /var/log/nginx /run/supervisord
|
|
|
|
COPY infra/php-fpm-pool.conf /usr/local/etc/php-fpm.d/www.conf
|
|
COPY infra/supervisord.conf /etc/supervisord.conf
|
|
COPY infra/nginx.conf /etc/nginx/nginx.conf
|
|
COPY infra/entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
COPY assets /var/www/html/assets/
|
|
COPY src /var/www/html/src/
|
|
COPY robots.txt /var/www/html/robots.txt
|
|
COPY 404.html /var/www/html/404.html
|
|
COPY 500.html /var/www/html/500.html
|
|
COPY .env /var/www/html/.env
|
|
|
|
RUN chown -R www-data:www-data /var/www/html
|
|
|
|
ENV RESEND_API_KEY="" \
|
|
FROM_EMAIL="" \
|
|
TO_EMAIL="" \
|
|
ALTCHA_HMAC_KEY="" \
|
|
RATE_LIMIT_PER_IP_PER_10MIN=5 \
|
|
TIME_MIN_SECONDS=3 \
|
|
TRUST_PROXY=1
|
|
|
|
EXPOSE 80
|
|
|
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
|
CMD curl -fsS http://127.0.0.1/ > /dev/null || exit 1
|
|
|
|
ENTRYPOINT ["/entrypoint.sh", "/sbin/tini", "--"]
|
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf", "-n"]
|