pdf-accessibility/Dockerfile.web
Vadym Samoilenko 112719b2c5 Add Docker stack, frontend redesign, and visual page inspector fix
- Redesigned frontend with Outfit/Figtree typography, coral accent palette,
  noise texture, glassmorphism header, and staggered animations
- Split monolithic index.html into modular JS (app, api, upload, batch,
  results, page-viewer, utils) and extracted CSS
- Fixed worker.py to generate page images for Visual Page Inspector
- Added Docker Compose stack (web, worker, redis, postgres)
- Added batch upload, HTML report export, rate limiting, and Redis queue
- Extended test suite with checker, remediation, worker, and DB tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 18:12:44 +00:00

33 lines
905 B
Text

FROM php:8.2-fpm-alpine
# Install Nginx, Python (for report generation), PostgreSQL libs, and PHP extensions
RUN apk add --no-cache nginx python3 postgresql-dev && \
docker-php-ext-install pdo pdo_pgsql
# Install php-redis via PECL
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \
pecl install redis && \
docker-php-ext-enable redis && \
apk del .build-deps
# Copy Nginx config
COPY nginx.conf /etc/nginx/http.d/default.conf
# Copy application files
WORKDIR /app
COPY api.php auth.php index.html ./
COPY report_generator.py ./
COPY css/ css/
COPY js/ js/
# Create directories
RUN mkdir -p /app/uploads /app/results /app/logs && \
chown -R www-data:www-data /app/uploads /app/results /app/logs
# Start both Nginx and PHP-FPM
COPY docker-entrypoint-web.sh /docker-entrypoint-web.sh
RUN chmod +x /docker-entrypoint-web.sh
EXPOSE 80
CMD ["/docker-entrypoint-web.sh"]