Nextcloud with Apache on Alpine Linux
| ADD alpine-minirootfs-3.23.4-aarch64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| LABEL name="Nextcloud" license="MIT" vendor="dutches.de" org.opencontainers.image.version="32.0.8" org.opencontainers.image.name="Nextcloud" org.opencontainers.image.description="Nextcloud with Apache on Alpine Linux" org.opencontainers.image.source="https://git.dutches.de/Dutch/nextcloud/src/branch/main/Containerfile" org.opencontainers.image.url="https://git.dutches.de/Dutch/nextcloud" org.opencontainers.image.license="MIT" org.opencontainers.image.authors="dutch@dutches.de" org.opencontainers.image.vendor="dutches.de" |
| ENV TZ=UTC |
| ENV STARTUP_OCC_MAINTENANCE=false |
| /bin/sh -c apk add --no-cache apache2 apache2-utils ca-certificates php83 php83-apache2 php83-pdo_mysql php83-mysqli php83-pdo_pgsql php83-pgsql php83-sqlite3 php83-pdo_sqlite php83-gd php83-intl php83-mbstring php83-opcache php83-openssl php83-zip php83-xml php83-curl php83-fileinfo php83-ctype php83-session php83-dom php83-xmlreader php83-posix php83-bcmath php83-exif php83-gmp php83-iconv php83-simplexml php83-sodium php83-xmlwriter php83-pecl-imagick php83-pecl-apcu php83-pecl-redis php83-sysvsem php83-pcntl librsvg mariadb-client mariadb-connector-c postgresql-client |
| COPY dir:29d010d075112414b82b1a55ec3e9bc8782227357811200ebd0d89feeb49a5e8 in /var/www/html/ |
| /bin/sh -c sed -i 's|^Listen 80$|Listen 8080|' /etc/apache2/httpd.conf && sed -i 's|^#LoadModule rewrite_module|LoadModule rewrite_module|' /etc/apache2/httpd.conf && sed -i 's|^#LoadModule headers_module|LoadModule headers_module|' /etc/apache2/httpd.conf && sed -i 's|^ErrorLog .*|ErrorLog /var/log/nextcloud/apache-error.log|' /etc/apache2/httpd.conf && sed -i '/^ServerName /d' /etc/apache2/httpd.conf && echo 'ServerName localhost' >> /etc/apache2/httpd.conf && echo 'ServerTokens Prod' >> /etc/apache2/httpd.conf && echo 'ServerSignature Off' >> /etc/apache2/httpd.conf && echo 'TraceEnable Off' >> /etc/apache2/httpd.conf && sed -i 's|PidFile "/run/apache2/httpd.pid"|PidFile "/tmp/apache2/run/httpd.pid"|' /etc/apache2/conf.d/mpm.conf && rm -f /etc/apache2/conf.d/default.conf && printf '<VirtualHost *:8080>\n DocumentRoot /var/www/html\n <Directory /var/www/html>\n Options FollowSymLinks\n AllowOverride All\n Require all granted\n </Directory>\n <Directory /var/www/html/data>\n Require all denied\n </Directory>\n <FilesMatch "(^\\.ht|^\\.git|^\\.env|config\\.php$|autoconfig\\.php$)">\n Require all denied\n </FilesMatch>\n RedirectMatch 301 ^/favicon.ico$ /core/img/favicon.ico\n Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"\n Header always set X-Content-Type-Options "nosniff"\n Header always set X-Robots-Tag "noindex, nofollow"\n ErrorLog /var/log/nextcloud/apache-error.log\n CustomLog /var/log/nextcloud/apache-access.log combined\n LogLevel warn\n</VirtualHost>\n' > /etc/apache2/conf.d/nextcloud.conf && mkdir -p /tmp/apache2/run /tmp/apache2/logs && mkdir -p /var/www/html/data /var/www/html/custom_apps /var/log/nextcloud && chown -R apache:apache /var/www/html /var/log/nextcloud |
| COPY multi:661d3d8c77e4fe00fd6ccdcdee4bc5360d6c97887c12cf1ce335057127b3b968 in /usr/local/share/nextcloud/config/ |
| COPY file:cd124fa6d31df6440ffa1e7da05570bb2709499754fdb29d3860e0c5cdd648a7 in /etc/php83/conf.d/zzz-nextcloud.ini |
| COPY file:7661c474d1ae83ef0bcf1245fedfda668057d333c476ffd49165b5cbf824fa52 in /entrypoint.sh |
| /bin/sh -c chmod +x /entrypoint.sh |
| EXPOSE 8080 |
| VOLUME ["/var/www/html/data", "/var/www/html/config", "/var/www/html/custom_apps", "/var/log/nextcloud"] |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 CMD wget -q --spider http://localhost:8080/status.php || exit 1 |
| ENTRYPOINT ["/entrypoint.sh"] |
| CMD ["httpd", "-D", "FOREGROUND"] |
| Key |
Value |
| io.buildah.version |
1.43.0 |
| license |
MIT |
| name |
Nextcloud |
| org.opencontainers.image.authors |
dutch@dutches.de |
| org.opencontainers.image.description |
Nextcloud with Apache on Alpine Linux |
| org.opencontainers.image.license |
MIT |
| org.opencontainers.image.name |
Nextcloud |
| org.opencontainers.image.source |
https://git.dutches.de/Dutch/nextcloud/src/branch/main/Containerfile |
| org.opencontainers.image.url |
https://git.dutches.de/Dutch/nextcloud |
| org.opencontainers.image.vendor |
dutches.de |
| org.opencontainers.image.version |
32.0.8 |
| vendor |
dutches.de |