Add Nextcloud Dockerfile #4

Merged
me merged 8 commits from dev into main 2025-06-16 16:41:45 -07:00
6 changed files with 40 additions and 18 deletions
Showing only changes of commit ac60f54142 - Show all commits

View File

@ -0,0 +1,11 @@
# 2025-06-16 Hyperling
# Tired of running fixes.sh to install extra packages. Bake them in!
FROM nextcloud:stable
# Cache System Dependencies
RUN apt-get update && apt-get install -y sudo libmagickcore-6.q16-6-extra htop \
iputils-ping dnsutils vim bzip2 libbz2-dev
# Configure PHP Dependency
RUN docker-php-ext-install bz2

View File

@ -72,7 +72,8 @@ services:
## Nextcloud ## ## Nextcloud ##
nc-app: nc-app:
container_name: nc-app container_name: nc-app
image: nextcloud:stable build:
context: ./
restart: always restart: always
ports: ports:
- 8080:80 - 8080:80

View File

@ -73,7 +73,8 @@ services:
## Nextcloud ## ## Nextcloud ##
nc-app: nc-app:
container_name: nc-app container_name: nc-app
image: nextcloud:stable build:
context: ./
restart: always restart: always
ports: ports:
- 8080:80 - 8080:80

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# 2022-09-25 Hyperling # 2022-09-25 Hyperling
# Put fixes in a file so they do not need remembered. # Put maintenance needs into a file so the commands do not need remembered.
## Setup ## ## Setup ##
@ -11,19 +11,20 @@ source $DIR/../../source.env
## Main ## ## Main ##
echo -e "\n*** APT ***" ##### 20250616 - Apt and PHP commands now baked into the Dockerfile!! :D #####
###echo -e "\n*** APT ***"
echo -e "\n`date` - Update Apt Cache" ###
docker exec -it nc-app apt update -y ###echo -e "\n`date` - Update Apt Cache"
###docker exec -it nc-app apt update -y
echo -e "\n`date` - Install Additional Software" ###
docker exec -it nc-app apt install -y sudo libmagickcore-6.q16-6-extra htop \ ###echo -e "\n`date` - Install Additional Software"
iputils-ping dnsutils vim bzip2 libbz2-dev # php-bz2 ###docker exec -it nc-app apt install -y sudo libmagickcore-6.q16-6-extra htop \
### iputils-ping dnsutils vim bzip2 libbz2-dev # php-bz2
# 20240130 ###
# https://help.nextcloud.com/t/docker-image-setup-warning-missing-bz2-after-update-to-nc-28-0-0/176605 #### 20240130
echo -e "\n`date` - Compile PHP Modules" #### https://help.nextcloud.com/t/docker-image-setup-warning-missing-bz2-after-update-to-nc-28-0-0/176605
docker exec -it nc-app docker-php-ext-install bz2 ###echo -e "\n`date` - Compile PHP Modules"
###docker exec -it nc-app docker-php-ext-install bz2
# 2023-12-04 Make sure cron and chmod commands get run. # 2023-12-04 Make sure cron and chmod commands get run.
echo -e "\n*** CRON ***" echo -e "\n*** CRON ***"