mirror of
https://github.com/casjaysdevdocker/nextcloud
synced 2025-01-18 12:34:32 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
87cddfb0a3
commit
c38211b6bb
56
Dockerfile
56
Dockerfile
@ -16,7 +16,7 @@ ENV SHELL=/bin/bash \
|
|||||||
HOSTNAME=${HOSTNAME:-casjaysdev-$IMAGE_NAME} \
|
HOSTNAME=${HOSTNAME:-casjaysdev-$IMAGE_NAME} \
|
||||||
TZ=$TIMEZONE
|
TZ=$TIMEZONE
|
||||||
|
|
||||||
RUN mkdir -p /bin/ /config/ /data/ && \
|
RUN mkdir -p /bin/ /config/ /data/ /dist/nextcloud/ && \
|
||||||
rm -Rf /bin/.gitkeep /config/.gitkeep /data/.gitkeep && \
|
rm -Rf /bin/.gitkeep /config/.gitkeep /data/.gitkeep && \
|
||||||
echo "http://dl-cdn.alpinelinux.org/alpine/$ALPINE_VERSION/main" >> /etc/apk/repositories && \
|
echo "http://dl-cdn.alpinelinux.org/alpine/$ALPINE_VERSION/main" >> /etc/apk/repositories && \
|
||||||
echo "http://dl-cdn.alpinelinux.org/alpine/$ALPINE_VERSION/community" >> /etc/apk/repositories && \
|
echo "http://dl-cdn.alpinelinux.org/alpine/$ALPINE_VERSION/community" >> /etc/apk/repositories && \
|
||||||
@ -79,9 +79,9 @@ RUN mkdir -p /bin/ /config/ /data/ && \
|
|||||||
php8-xmlwriter \
|
php8-xmlwriter \
|
||||||
php8-zip \
|
php8-zip \
|
||||||
php8-zlib \
|
php8-zlib \
|
||||||
tzdata
|
tzdata; \
|
||||||
|
\
|
||||||
RUN apk --update --no-cache add -t build-dependencies \
|
apk --update --no-cache add -t build-dependencies \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
build-base \
|
build-base \
|
||||||
@ -89,42 +89,42 @@ RUN apk --update --no-cache add -t build-dependencies \
|
|||||||
pcre-dev \
|
pcre-dev \
|
||||||
php8-dev \
|
php8-dev \
|
||||||
php8-pear \
|
php8-pear \
|
||||||
samba-dev
|
samba-dev; \
|
||||||
|
\
|
||||||
RUN apk add --no-cache \
|
apk add --no-cache \
|
||||||
python3 \
|
python3 \
|
||||||
py3-pip && \
|
py3-pip; \
|
||||||
python3 -m pip install --upgrade pip && \
|
python3 -m pip install --upgrade pip && \
|
||||||
python3 -m pip install nextcloud_news_updater
|
python3 -m pip install nextcloud_news_updater; \
|
||||||
|
\
|
||||||
RUN mv /etc/php8 /etc/php && \
|
mv /etc/php8 /etc/php && \
|
||||||
ln -s /etc/php /etc/php8 && \
|
ln -s /etc/php /etc/php8 && \
|
||||||
mv /etc/init.d/php-fpm8 /etc/init.d/php-fpm && \
|
mv /etc/init.d/php-fpm8 /etc/init.d/php-fpm && \
|
||||||
ln -s /etc/init.d/php-fpm /etc/init.d/php-fpm8 && \
|
ln -s /etc/init.d/php-fpm /etc/init.d/php-fpm8 && \
|
||||||
mv /etc/logrotate.d/php-fpm8 /etc/logrotate.d/php-fpm && \
|
mv /etc/logrotate.d/php-fpm8 /etc/logrotate.d/php-fpm && \
|
||||||
ln -s /etc/logrotate.d/php-fpm /etc/logrotate.d/php-fpm8 && \
|
ln -s /etc/logrotate.d/php-fpm /etc/logrotate.d/php-fpm8 && \
|
||||||
mv /var/log/php8 /var/log/php && ln -s /var/log/php /var/log/php8 && \
|
mv /var/log/php8 /var/log/php && ln -s /var/log/php /var/log/php8 && \
|
||||||
ln -s /usr/sbin/php-fpm8 /usr/sbin/php-fpm
|
ln -s /usr/sbin/php-fpm8 /usr/sbin/php-fpm; \
|
||||||
|
\
|
||||||
RUN cd /tmp && \
|
cd /tmp && \
|
||||||
wget -q https://pecl.php.net/get/smbclient-${SMBCLIENT_VERSION}.tgz && \
|
wget -q https://pecl.php.net/get/smbclient-${SMBCLIENT_VERSION}.tgz && \
|
||||||
pecl8 install smbclient-${SMBCLIENT_VERSION}.tgz
|
pecl8 install smbclient-${SMBCLIENT_VERSION}.tgz; \
|
||||||
|
\
|
||||||
RUN apk del build-dependencies && \
|
apk del build-dependencies && \
|
||||||
rm -rf /tmp/* /var/www/*
|
rm -rf /tmp/* /var/www/*; \
|
||||||
|
\
|
||||||
WORKDIR /tmp
|
RUN cd /tmp && \
|
||||||
RUN curl -SsOL "https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2" && \
|
curl -SsOL "https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2" && \
|
||||||
curl -SsOL "https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2.asc" && \
|
curl -SsOL "https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2.asc" && \
|
||||||
curl -SsOL "https://nextcloud.com/nextcloud.asc" && \
|
curl -SsOL "https://nextcloud.com/nextcloud.asc" && \
|
||||||
gpg --import "nextcloud.asc" && \
|
gpg --import "nextcloud.asc" && \
|
||||||
gpg --verify --batch --no-tty "nextcloud-${NEXTCLOUD_VERSION}.tar.bz2.asc" "nextcloud-${NEXTCLOUD_VERSION}.tar.bz2"
|
gpg --verify --batch --no-tty "nextcloud-${NEXTCLOUD_VERSION}.tar.bz2.asc" "nextcloud-${NEXTCLOUD_VERSION}.tar.bz2"; \
|
||||||
|
\
|
||||||
WORKDIR /dist/nextcloud
|
cd /dist/nextcloud && \
|
||||||
RUN tar -xjf "/tmp/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2" --strip 1 -C . && \
|
tar -xjf "/tmp/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2" --strip 1 -C . && \
|
||||||
addgroup -g ${PGID} nextcloud && adduser -D -h /home/nextcloud -u ${PUID} -G nextcloud -s /bin/sh nextcloud
|
addgroup -g ${PGID} nextcloud && adduser -D -h /home/nextcloud -u ${PUID} -G nextcloud -s /bin/sh nextcloud; \
|
||||||
|
\
|
||||||
RUN rm -rf /tmp/*
|
rm -rf /tmp/*
|
||||||
|
|
||||||
COPY ./bin/. /usr/local/bin/
|
COPY ./bin/. /usr/local/bin/
|
||||||
COPY ./config/. /config/
|
COPY ./config/. /config/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user