ajout de tiny pour l'init
This commit is contained in:
parent
8bac8496d0
commit
1d509a4abc
11
Dockerfile
11
Dockerfile
@ -1,7 +1,6 @@
|
||||
FROM "php:7.1-apache"
|
||||
|
||||
RUN rm -rf "/var/www/html" && \
|
||||
sed -i'' 's/^Listen 80$/Listen 8080/' "/etc/apache2/ports.conf" && \
|
||||
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'; \
|
||||
@ -24,7 +23,15 @@ 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