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 && \
|
2021-10-10 23:52:00 -07:00
|
|
|
apt-get -y install curl p7zip-full megatools git jq && \
|
2021-09-24 12:13:09 -07:00
|
|
|
chmod +x /init.sh
|
2022-01-03 08:02:26 -08:00
|
|
|
|
|
|
|
RUN cat <<EOT >> /usr/local/apache2/conf/httpd.conf
|
|
|
|
<Location /server-status>
|
|
|
|
SetHandler server-status
|
|
|
|
Order deny,allow
|
|
|
|
Allow from all
|
|
|
|
</Location>
|
|
|
|
EOT
|
2022-01-03 07:43:32 -08:00
|
|
|
COPY httpd.conf /usr/local/apache2/conf/httpd.conf
|
2021-07-05 00:01:04 -07:00
|
|
|
WORKDIR /usr/local/apache2/htdocs/
|
|
|
|
RUN mkdir download
|
2021-09-09 13:20:30 -07:00
|
|
|
RUN chown -R $PUID:$PGID /usr/local/apache2/htdocs
|
2021-07-05 00:01:04 -07:00
|
|
|
ENV IMG false
|
2021-08-01 12:57:30 -07:00
|
|
|
CMD ["/bin/bash","/init.sh"]
|