Browse Source

passage à www/phpapache

master
Julien Cabillot 3 years ago
committed by root
parent
commit
514d5ec557
1 changed files with 3 additions and 28 deletions
  1. 31
      Dockerfile

31
Dockerfile

@ -1,32 +1,7 @@
FROM "php:7.1-apache"
ARG VERSION="latest"
FROM "registry.cabillot.eu/www/phpapache:${VERSION}"
MAINTAINER "Julien Cabillot <dockerimages@cabillot.eu>"
RUN sed -i'' 's/^Listen 80$/Listen 8080/' "/etc/apache2/ports.conf" && \
sed -i'' 's/^<VirtualHost \*:80>$/<VirtualHost *:8080>/' '/etc/apache2/sites-enabled/000-default.conf' && \
apt-get -y autoremove --purge && \
apt-get -y clean all && \
rm -rf "/usr/share/doc/*" \
"/var/cache/*" \
"/var/lib/apt/lists/*" \
"/usr/src/*" \
"/var/cache/*" \
"/var/log/"{apt/*,dpkg.log} \
"/var/www/html" \
"/tmp/*" && \
mkdir "/var/www/html" && \
chown "www-data":"www-data" "/var/www/html"
# Add Tini
ENV "TINI_VERSION" "v0.16.1"
ADD "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini" "/tini"
RUN chmod +x "/tini"
ENTRYPOINT ["/tini", "--"]
USER "www-data"
RUN curl -s -L "https://github.com/RSS-Bridge/rss-bridge/tarball/master/" | tar -zx --strip=1 RUN curl -s -L "https://github.com/RSS-Bridge/rss-bridge/tarball/master/" | tar -zx --strip=1
RUN echo "*" > "/var/www/html/whitelist.txt" RUN echo "*" > "/var/www/html/whitelist.txt"
CMD [ "docker-php-entrypoint", "apache2-foreground" ]
HEALTHCHECK --interval="10s" \
CMD curl --fail "http://localhost:8080" || exit 1
Loading…
Cancel
Save