Files
sistav.com/Dockerfile
T
2026-06-01 18:08:37 -04:00

13 lines
383 B
Docker

FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y \
php \
apache2 \
libapache2-mod-php \
git \
&& rm -rf /var/lib/apt/lists/*
COPY . /var/www/html
RUN rm -f /var/www/html/index.html
RUN sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf
RUN a2enmod expires headers deflate
EXPOSE 80
CMD ["apache2ctl", "-D", "FOREGROUND"]