utilisation de registry.cabillot.eu/www/phpapache
This commit is contained in:
parent
7cf5ccae37
commit
13cc73d0f5
36
Dockerfile
36
Dockerfile
@ -1,37 +1,3 @@
|
||||
FROM "php:7.1-apache"
|
||||
|
||||
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' && \
|
||||
{ \
|
||||
echo 'RemoteIPHeader X-Real-IP'; \
|
||||
echo 'RemoteIPProxiesHeader X-Forwarded-By'; \
|
||||
} | tee "$APACHE_CONFDIR/conf-available/remoteip.conf" && \
|
||||
a2enconf remoteip && \
|
||||
a2enmod remoteip && \
|
||||
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/*"
|
||||
FROM "registry.cabillot.eu/www/phpapache"
|
||||
|
||||
COPY "root" "/var/www/html"
|
||||
|
||||
RUN chown -R "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"
|
||||
|
||||
CMD [ "docker-php-entrypoint", "apache2-foreground" ]
|
||||
|
||||
HEALTHCHECK --interval="10s" \
|
||||
CMD curl --fail "http://localhost:8080" || exit 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user