mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
using nodejs v20.x (and PHP 8.2 by default) for development images
This commit is contained in:
parent
441bc8ad00
commit
b19a2b518e
@ -3,11 +3,11 @@
|
||||
## EGroupware development container using Ubuntu 20.04 and PHP from ondrej/php PPA
|
||||
##
|
||||
################################################################################
|
||||
FROM ubuntu:22.04
|
||||
FROM ubuntu:20.04
|
||||
MAINTAINER rb@egroupware.org
|
||||
|
||||
ARG VERSION=dev-master
|
||||
ARG PHP_VERSION=8.1
|
||||
ARG PHP_VERSION=8.2
|
||||
|
||||
# keeping build-arg in environment for entrypoint.sh
|
||||
ENV VERSION=$VERSION
|
||||
@ -48,10 +48,12 @@ RUN apt-get update \
|
||||
&& mkdir -p /run/php \
|
||||
# send logs to stderr to be viewed by docker logs
|
||||
&& ln -s /dev/stderr /var/log/php$PHP_VERSION-fpm.log \
|
||||
# install nodejs 16.x PPA (Shoelace requires >= 14.17, Ubuntu 22.04 only has 12.x)
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \
|
||||
# install nodejs 20.x (Shoelace requires >= 14.17, Ubuntu 22.04 only has 12.x) \
|
||||
&& mkdir -p /etc/apt/keyrings \
|
||||
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
|
||||
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
|
||||
# install tools to build EGroupware
|
||||
&& apt-get install -y rsync nodejs zip curl sudo cron patch \
|
||||
&& apt-get install -y rsync nodejs npm zip curl sudo cron patch \
|
||||
&& npm install -g grunt-cli \
|
||||
&& bash -c \
|
||||
'EXPECTED_SIGNATURE=$(curl https://composer.github.io/installer.sig); \
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
REPO=egroupware
|
||||
IMAGE=development
|
||||
BASE=ubuntu:22.04
|
||||
BASE=ubuntu:20.04
|
||||
RECOMMENDED_PHP_VERSION=8.1
|
||||
|
||||
PHP_VERSION=${1:-8.1}
|
||||
@ -44,4 +44,4 @@ docker build --no-cache --build-arg "VERSION=$VERSION" --build-arg="PHP_VERSION=
|
||||
docker tag $REPO/$IMAGE:$TAG $REPO/$IMAGE:$BRANCH
|
||||
docker push $REPO/$IMAGE:$BRANCH
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user