FIX: Extract nextcloud archive

This commit is contained in:
Shihaam Abdul Rahman 2022-10-07 20:27:53 +05:00
parent b893787b1a
commit 8079905530
Signed by: shihaam
GPG Key ID: 3B007D22E5584980
3 changed files with 10 additions and 11 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@ configs/
configs/*
logs/
logs/*
nextcloud/
nextcloud/*

View File

@ -1,11 +1,10 @@
FROM debian:11-slim
WORKDIR /root
ARG NEXTCLOUD_VESION=1
ARG PHPVERSION=8.1
#Initial update packges
RUN apt update && apt upgrade
RUN apt update && apt upgrade -y
# Language setup
ENV LANG en_US.UTF-8
@ -18,10 +17,15 @@ RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \
&& locale-gen
# Installing basic tools
RUN apt install zip unzip git gnupg2 ca-certificates lsb-release apt-transport-https wget curl nano vim -y --no-install-recommends \
RUN apt install bzip2 zip unzip git gnupg2 ca-certificates lsb-release apt-transport-https wget curl nano vim -y --no-install-recommends \
&& apt auto-remove -y \
&& apt clean -y
#Download and extract Nextcloud....
RUN wget https://download.nextcloud.com/server/releases/latest.tar.bz2 \
&& tar -xvf latest.tar.bz2 \
&& rm -v latest.tar.bz2
# Installing and configuring nginx
RUN apt install nginx -y --no-install-recommends \
&& apt auto-remove -y \
@ -63,14 +67,7 @@ RUN bash -c 'apt install -y php${PHPVERSION}-imagick imagemagick ffmpeg libreoff
#Installing Optional cli enhancement PHP Modules
#RUN bash -c 'apt install -y php${PHPVERSION}-pcntl --no-install-recommends'
#Download and extract Nextcloud....
RUN wget https://download.nextcloud.com/server/releases/latest.tar.bz2 \
&& tar -xvf latest.tar.bz2 \
&& rm -v latest.tar.bz2
# Delete default stuff
#nginx
RUN rm -rv /var/www/html/index.nginx-debian.html \
/etc/php/ \
/etc/nginx/

View File

@ -9,7 +9,7 @@ cp -rv default_configs/etc/php /etc/
touch init/init
#Copy nextcloud to web root
cp -rv nextcloud/ /var/www/html
cp -rv nextcloud/* /var/www/html/
#Create log dirs
mkdir -pv /root/logs/nginx