12 lines
347 B
Docker
12 lines
347 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
|
|
EXPOSE 80
|
|
CMD ["apache2ctl", "-D", "FOREGROUND"] |