51 lines
No EOL
1.1 KiB
Docker
51 lines
No EOL
1.1 KiB
Docker
FROM debian:latest AS BUILDER
|
|
|
|
RUN apt-get update && apt-get upgrade -y
|
|
RUN apt-get install -y zip unzip git curl wget
|
|
|
|
|
|
WORKDIR /var/www
|
|
|
|
RUN git clone https://github.com/nextcloud/server html
|
|
|
|
WORKDIR /var/www/html
|
|
RUN git checkout v30.0.2
|
|
RUN git submodule update --init --recursive
|
|
|
|
RUN rm -rf .git
|
|
|
|
|
|
FROM git.zontreck.com/ariascreations/buildenvironments:debianbuild
|
|
|
|
|
|
RUN apt-get install -y apache2 apache2-utils php8.2 php8.2-gd php8.2-mysql php8.2-mbstring php8.2-xml php8.2-imagick imagemagick unzip zip php8.2-zip php8.2-curl php8.2-sqlite rsync
|
|
|
|
RUN apt-get install -y php8.2-bcmath php8.2-gmp php8.2-intl cron
|
|
|
|
ENV MOUNTPOINT /var/www/html
|
|
ENV NEXTCLOUD_VERSION 30.0.2
|
|
|
|
WORKDIR /var/www/
|
|
|
|
COPY --from=BUILDER /var/www/html /var/www/htmlx
|
|
|
|
WORKDIR /var/www/htmlx
|
|
|
|
RUN chown -R www-data:www-data /var/www/htmlx
|
|
COPY ./upload.ini /etc/php/8.2/apache2/conf.d/upload.ini
|
|
|
|
WORKDIR /etc/apache2/sites-enabled
|
|
RUN rm -f *
|
|
ADD ./default.conf ./default.conf
|
|
|
|
WORKDIR /var/www/htmlx
|
|
|
|
ADD ./entrypoint.sh /
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ADD ./cron_task /etc/crontab
|
|
|
|
EXPOSE 80
|
|
|
|
CMD [ "crontab", "/etc/crontab" ]
|
|
ENTRYPOINT [ "/entrypoint.sh" ] |