mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-22 23:46:53 +00:00
Merge pull request #2494 from nextcloud/domaincheck-dockerfile
optimze domaincheck Dockerfile
This commit is contained in:
commit
9b8a547f71
1 changed files with 9 additions and 11 deletions
|
|
@ -1,18 +1,16 @@
|
||||||
FROM alpine:3.17.3
|
FROM alpine:3.17.3
|
||||||
RUN apk add --no-cache lighttpd bash netcat-openbsd
|
RUN set -ex; \
|
||||||
|
apk add --no-cache bash lighttpd netcat-openbsd; \
|
||||||
|
adduser -S www-data -G www-data; \
|
||||||
|
rm -rf /etc/lighttpd/lighttpd.conf; \
|
||||||
|
chmod +r -R /etc/lighttpd; \
|
||||||
|
mkdir -p /var/www/domaincheck; \
|
||||||
|
chown www-data:www-data -R /var/www
|
||||||
|
COPY --chown=www-data:www-data lighttpd.conf /etc/lighttpd/lighttpd.conf
|
||||||
|
|
||||||
RUN adduser -S www-data -G www-data
|
COPY --chmod=775 start.sh /start.sh
|
||||||
RUN rm -rf /etc/lighttpd/lighttpd.conf
|
|
||||||
COPY lighttpd.conf /etc/lighttpd/lighttpd.conf
|
|
||||||
RUN chmod +r -R /etc/lighttpd && \
|
|
||||||
chown www-data:www-data -R /var/www && \
|
|
||||||
chown www-data:www-data /etc/lighttpd/lighttpd.conf
|
|
||||||
|
|
||||||
COPY start.sh /
|
|
||||||
RUN chmod +x /start.sh
|
|
||||||
|
|
||||||
USER www-data
|
USER www-data
|
||||||
RUN mkdir -p /var/www/domaincheck/
|
|
||||||
ENTRYPOINT ["/start.sh"]
|
ENTRYPOINT ["/start.sh"]
|
||||||
|
|
||||||
HEALTHCHECK CMD nc -z localhost $APACHE_PORT || exit 1
|
HEALTHCHECK CMD nc -z localhost $APACHE_PORT || exit 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue