this repo has no description
1FROM php:8.3-fpm-alpine
2
3# Install nginx
4RUN apk add --no-cache nginx
5
6# Create log and state directories
7RUN mkdir -p /var/lib/wp-honeypot /run/nginx \
8 && touch /var/log/wp-honeypot.log /var/log/wp-honeypot-intel.jsonl \
9 && chown www-data:www-data /var/lib/wp-honeypot /var/log/wp-honeypot.log /var/log/wp-honeypot-intel.jsonl \
10 && chmod 700 /var/lib/wp-honeypot \
11 && chmod 640 /var/log/wp-honeypot.log /var/log/wp-honeypot-intel.jsonl
12
13# Copy nginx config
14COPY docker/nginx.conf /etc/nginx/http.d/default.conf
15
16# Copy trap files
17COPY trap/wp-trap.php /var/www/html/wp-trap.php
18COPY trap/wp-trap-config.php /var/www/html/wp-trap-config.php
19
20# Copy dashboard
21COPY tools/dashboard.php /var/www/html/dashboard/index.php
22
23# Set ownership
24RUN chown -R www-data:www-data /var/www/html
25
26# Entrypoint: run php-fpm + nginx
27COPY docker/entrypoint.sh /entrypoint.sh
28RUN chmod +x /entrypoint.sh
29
30EXPOSE 80
31CMD ["/entrypoint.sh"]