15 lines
525 B
Docker
15 lines
525 B
Docker
FROM alpine:3.20
|
|
|
|
RUN apk add php83-apache2 php83-ldap php83-session php83-json php83-pecl-redis
|
|
RUN sed -i "s|/var/www/localhost/htdocs|/var/www/html|g" /etc/apache2/httpd.conf
|
|
# RUN rm /var/log/apache2/access.log /var/log/apache2/error.log
|
|
RUN ln -s /dev/stdout /var/log/apache2/access.log
|
|
RUN ln -s /dev/stderr /var/log/apache2/error.log
|
|
RUN mkdir /var/www/html
|
|
COPY www/ /var/www/html
|
|
RUN chmod 777 /var/www/html/templates_c
|
|
WORKDIR /var/www/html
|
|
|
|
VOLUME /var/www/html
|
|
EXPOSE 80
|
|
CMD ["/usr/sbin/httpd","-D","FOREGROUND"] |