2021-07-05 00:01:04 -07:00
|
|
|
FROM httpd
|
2021-09-09 13:20:30 -07:00
|
|
|
ENV PUID=${PUID:-1000}
|
|
|
|
ENV PGID=${PGID:-1000}
|
2021-07-05 00:01:04 -07:00
|
|
|
COPY init.sh /init.sh
|
|
|
|
RUN apt-get update && \
|
2021-08-01 10:36:32 -07:00
|
|
|
apt-get -y upgrade && \
|
2024-02-16 22:14:59 -08:00
|
|
|
apt-get -y install curl git jq && \
|
2021-09-24 12:13:09 -07:00
|
|
|
chmod +x /init.sh
|
2022-01-03 08:02:26 -08:00
|
|
|
|
2022-01-03 08:05:54 -08:00
|
|
|
RUN echo "<Location /server-status>\n"\
|
|
|
|
" SetHandler server-status\n"\
|
|
|
|
" Order deny,allow\n"\
|
|
|
|
" Allow from all\n"\
|
|
|
|
"</Location>\n"\
|
|
|
|
>> /usr/local/apache2/conf/httpd.conf
|
|
|
|
|
2021-07-05 00:01:04 -07:00
|
|
|
WORKDIR /usr/local/apache2/htdocs/
|
2021-09-09 13:20:30 -07:00
|
|
|
RUN chown -R $PUID:$PGID /usr/local/apache2/htdocs
|
2021-08-01 12:57:30 -07:00
|
|
|
CMD ["/bin/bash","/init.sh"]
|