2024-04-11 03:15:34 +00:00
|
|
|
FROM docker.io/library/debian:latest AS unpack
|
|
|
|
|
|
|
|
RUN apt-get update --yes
|
|
|
|
RUN apt-get install unzip --yes
|
|
|
|
RUN mkdir --parents /download
|
|
|
|
|
|
|
|
WORKDIR /download
|
|
|
|
|
|
|
|
ADD https://download.nextcloud.com/server/releases/latest.zip /download/latest.zip
|
|
|
|
RUN unzip latest.zip
|
|
|
|
|
|
|
|
FROM docker.io/library/nginx:latest AS final
|
2024-04-10 23:06:45 +00:00
|
|
|
|
|
|
|
ENV NEXTCLOUD_DOMAIN=example.com
|
|
|
|
ENV NEXTCLOUD_PHP_FPM_HOST=php-fpm-nextcloud:9000
|
|
|
|
ENV NEXTCLOUD_MAX_UPLOAD_SIZE=512M
|
|
|
|
|
|
|
|
ADD nginx.conf.template /nginx.conf.template
|
|
|
|
ADD docker-entrypoint.sh /docker-entrypoint.sh
|
|
|
|
|
2024-04-11 03:15:34 +00:00
|
|
|
RUN mkdir --parents /var/www/html
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
|
|
|
COPY --from=unpack /download/nextcloud /var/www/html/nextcloud
|
|
|
|
RUN chown -R root:root nextcloud/
|
|
|
|
RUN chmod -R 0755 nextcloud/
|
|
|
|
|
2024-04-10 23:06:45 +00:00
|
|
|
ENTRYPOINT ["sh", "-c", "/docker-entrypoint.sh"]
|