mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
54 lines
2.1 KiB
Docker
54 lines
2.1 KiB
Docker
ARG PHP_VERSION
|
|
FROM icewind1991/haze-php:$PHP_VERSION
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive ;\
|
|
echo 'deb http://http.debian.net/debian buster-backports main' >> /etc/apt/sources.list && \
|
|
apt-get update && \
|
|
apt-get install --assume-yes \
|
|
cron \
|
|
redis-server \
|
|
smbclient \
|
|
npm \
|
|
sudo \
|
|
wget \
|
|
attr \
|
|
git \
|
|
neovim \
|
|
nano \
|
|
sqlite3 \
|
|
s3cmd \
|
|
gdb \
|
|
python3-pip \
|
|
procps \
|
|
# chromium \
|
|
ncat && \
|
|
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.1.35.zip" -o "awscliv2.zip" && \
|
|
unzip awscliv2.zip && \
|
|
./aws/install && \
|
|
wget https://phar.phpunit.de/phpunit-9.phar -O /usr/local/bin/phpunit.phar && \
|
|
curl -L https://github.com/harness/drone-cli/releases/latest/download/drone_linux_amd64.tar.gz | tar zx && \
|
|
install -t /usr/bin drone && \
|
|
wget https://github.com/vimeo/psalm/releases/latest/download/psalm.phar -O /usr/local/bin/psalm && \
|
|
chmod +x /usr/local/bin/psalm
|
|
|
|
ADD misc/collaboraonline.sources /etc/apt/sources.list.d
|
|
RUN DEBIAN_FRONTEND=noninteractive ;\
|
|
wget -q -O - https://packages.blackfire.io/gpg.key | apt-key add - && \
|
|
echo "deb http://packages.blackfire.io/debian any main" >> /etc/apt/sources.list.d/blackfire.list && \
|
|
wget https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg -O /usr/share/keyrings/collaboraonline-release-keyring.gpg && \
|
|
apt-get update && \
|
|
apt-get install --assume-yes blackfire
|
|
|
|
ADD configs/autoconfig_mariadb.php configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/s3.php configs/s3m.php configs/s3mb.php configs/swift.php configs/swiftv3.php configs/azure.php configs/config.php /root/
|
|
ADD configs/nginx-app.conf /etc/nginx/
|
|
|
|
RUN mkdir --parent /var/log/cron
|
|
ADD configs/cron.conf /etc/oc-cron.conf
|
|
|
|
ADD misc/bootstrap.sh misc/occ misc/tests misc/phpunit misc/install misc/occ misc/integration misc/chromium-no-sandbox /usr/local/bin/
|
|
ADD configs/sudoers /etc/sudoers.d/haze
|
|
ADD configs/.s3cfg configs/.gdbinit configs/.aws /home/haze/
|
|
|
|
ENV WEBROOT /var/www/html
|
|
|
|
ENTRYPOINT ["bootstrap.sh"]
|