FROM alpine:3.13 ENV NEXTCLOUD_VERSION=21.0.2 EXPOSE 9000 RUN apk add -q --no-cache -q php7 php7-fpm php7-bcmath php7-ctype php7-curl php7-dom php7-gd php7-fileinfo php7-gmp php7-iconv php7-intl php7-json \ php7-mbstring php7-openssl php7-pcntl php7-posix php7-session php7-simplexml php7-xml php7-xmlreader \ php7-xmlwriter php7-zip php7-pdo_pgsql php7-pgsql wget WORKDIR /var/www/ RUN sed -i "s/127.0.0.1:9000/0.0.0.0:9000/" /etc/php7/php-fpm.d/www.conf RUN wget -q https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.zip && \ unzip -q nextcloud-${NEXTCLOUD_VERSION}.zip && rm nextcloud-${NEXTCLOUD_VERSION}.zip RUN chmod +x -R nextcloud && chown nobody -R nextcloud CMD php-fpm7 -F -R