jrjik
10 hours ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
11 additions and
1 deletions
-
.devcontainer/Dockerfile
-
.devcontainer/setup.sh
|
|
|
@ -7,7 +7,10 @@ RUN apt-get update -y && \ |
|
|
|
apt install -y apache2 vim software-properties-common sudo nano gnupg2 wget curl git \ |
|
|
|
lsb-release ca-certificates apt-transport-https && \ |
|
|
|
add-apt-repository ppa:ondrej/php -y && \ |
|
|
|
apt-get update -y |
|
|
|
apt-get update -y && \ |
|
|
|
a2enmod headers rewrite env && \ |
|
|
|
bash -lc 'printf "\n<Directory /var/www/html>\n AllowOverride All\n Require all granted\n</Directory>\n" >> /etc/apache2/sites-available/000-default.conf' && \ |
|
|
|
apache2ctl configtest |
|
|
|
|
|
|
|
RUN apt-get install --no-install-recommends -y \ |
|
|
|
php8.4 \ |
|
|
|
|
|
|
|
@ -9,6 +9,13 @@ cd $DIR/ |
|
|
|
|
|
|
|
git submodule update --init |
|
|
|
|
|
|
|
# Ensure Apache modules and vhost for Nextcloud |
|
|
|
sudo a2enmod headers rewrite env >/dev/null 2>&1 || true |
|
|
|
if ! grep -q "<Directory /var/www/html>" /etc/apache2/sites-available/000-default.conf; then |
|
|
|
sudo bash -lc 'printf "\n<Directory /var/www/html>\n AllowOverride All\n Require all granted\n</Directory>\n" >> /etc/apache2/sites-available/000-default.conf' |
|
|
|
fi |
|
|
|
sudo apache2ctl configtest || true |
|
|
|
|
|
|
|
# Codespace config |
|
|
|
cp .devcontainer/codespace.config.php config/codespace.config.php |
|
|
|
|
|
|
|
|