ajout de tiny pour l'init
This commit is contained in:
parent
0969c9a769
commit
a2ebadd1d6
@ -15,10 +15,18 @@ RUN sed -i'' 's/^Listen 80$/Listen 8080/' "/etc/apache2/ports.conf" && \
|
|||||||
mkdir "/var/www/html" && \
|
mkdir "/var/www/html" && \
|
||||||
chown "www-data":"www-data" "/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"
|
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" \
|
HEALTHCHECK --interval="10s" \
|
||||||
CMD curl --fail "http://localhost:8080" || exit 1
|
CMD curl --fail "http://localhost:8080" || exit 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user