40 lines
1.4 KiB
Docker
40 lines
1.4 KiB
Docker
FROM debian:stable-slim
|
|
|
|
# base
|
|
RUN apt update
|
|
|
|
# prepary sury repo
|
|
RUN apt install -yqq curl
|
|
RUN apt install -yqq lsb-release
|
|
RUN apt install -yqq ca-certificates
|
|
RUN curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
|
|
RUN dpkg -i /tmp/debsuryorg-archive-keyring.deb
|
|
RUN sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
|
|
RUN apt update
|
|
|
|
# install gpg
|
|
RUN apt install -yqq gpg
|
|
|
|
# install zip / unzip
|
|
RUN apt install -yqq zip unzip
|
|
|
|
# install PHP 8.3
|
|
RUN apt install -yqq php8.3-cli php8.3-common php8.3-curl php8.3-imagick php8.3-intl php8.3-mbstring php8.3-opcache php8.3-readline php8.3-xml php8.3-zip
|
|
|
|
# install nodeJS 22.14.0
|
|
RUN curl -o- https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh | bash
|
|
RUN apt install -yqq nodejs=22.14.0-1nodesource1
|
|
|
|
# install yarn
|
|
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarnkey.gpg >/dev/null
|
|
RUN sh -c 'echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list'
|
|
RUN apt update
|
|
RUN apt install -yqq yarn
|
|
|
|
# install git
|
|
RUN apt install -yqq git
|
|
|
|
# get composer
|
|
RUN mkdir -p /app/bin
|
|
RUN curl -s http://getcomposer.org/installer | /usr/bin/php8.3 -d date.timezone="Europe/Paris" -- --install-dir=/app/bin/
|