Skip to content

Commit

Permalink
fix build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
whitehara committed Apr 23, 2023
1 parent 2efdf50 commit fb0e468
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,21 @@ PHP_VER=8.1
PHP_TAG=local-php:$PHP_VER-apache-zts-bullseye
PHP_DIR=./php/$PHP_VER/bullseye/apache/

(cd php; git reset --hard; git pull)
sed -i -e "s/\(--with-apxs2\)/\1 --enable-zts --disable-zend-signals --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data /g" $PHP_DIR/Dockerfile
docker build -t $PHP_TAG --pull --no-cache $PHP_DIR

### 2nd stage: nextcloud ###
NEXTCLOUD_VER=25
NEXTCLOUD_VER=26
NEXTCLOUD_TAG=local-nextcloud:$NEXTCLOUD_VER-apache-zts
NEXTCLOUD_DIR=./nextcloud/$NEXTCLOUD_VER/apache/

(cd nextcloud; git reset --hard; git pull)
sed -i -e "s!FROM .*!FROM $PHP_TAG!g" $NEXTCLOUD_DIR/Dockerfile
docker build -t $NEXTCLOUD_TAG $NEXTCLOUD_DIR

### 3rd stage: nextcloud-custom ###
CUSTOM_TAG=nextcloud-custom

sed -i -e "s!FROM .*!FROM $NEXTCLOUD_TAG!g" $NEXTCLOUD_DIR/Dockerfile
sed -i -e "s!FROM .*!FROM $NEXTCLOUD_TAG!g" ./Dockerfile
docker build -t $CUSTOM_TAG .

0 comments on commit fb0e468

Please sign in to comment.