FIX: Extract nextcloud archive
This commit is contained in:
parent
b893787b1a
commit
8079905530
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,3 +2,5 @@ configs/
|
||||
configs/*
|
||||
logs/
|
||||
logs/*
|
||||
nextcloud/
|
||||
nextcloud/*
|
||||
|
17
Dockerfile
17
Dockerfile
@ -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/
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user