mirror of
https://github.com/nextcloud/server.git
synced 2024-08-23 05:56:02 +02:00
![Lukas Reschke](/assets/img/avatar_default.png)
This is required to build some apps such as the spreed app. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
48 lines
1.1 KiB
Docker
48 lines
1.1 KiB
Docker
FROM ubuntu:focal
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
# PHP
|
|
RUN apt-get update -y
|
|
RUN apt-get install --no-install-recommends -y \
|
|
php7.4 \
|
|
php7.4-gd \
|
|
php7.4-zip \
|
|
php7.4-curl \
|
|
php7.4-xml \
|
|
php7.4-mbstring \
|
|
php7.4-sqlite \
|
|
php7.4-xdebug \
|
|
php7.4-pgsql \
|
|
php7.4-intl \
|
|
php7.4-imagick \
|
|
php7.4-gmp \
|
|
php7.4-apcu \
|
|
php7.4-bcmath \
|
|
libmagickcore-6.q16-3-extra \
|
|
curl \
|
|
vim \
|
|
lsof \
|
|
make \
|
|
nodejs \
|
|
npm
|
|
|
|
RUN echo "xdebug.remote_enable = 1" >> /etc/php/7.4/cli/conf.d/20-xdebug.ini
|
|
RUN echo "xdebug.remote_autostart = 1" >> /etc/php/7.4/cli/conf.d/20-xdebug.ini
|
|
|
|
# Docker
|
|
RUN apt-get -y install \
|
|
apt-transport-https \
|
|
ca-certificates \
|
|
curl \
|
|
gnupg-agent \
|
|
software-properties-common
|
|
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
|
|
RUN add-apt-repository \
|
|
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
|
$(lsb_release -cs) \
|
|
stable"
|
|
RUN apt-get update -y
|
|
RUN apt-get install -y docker-ce docker-ce-cli containerd.io
|
|
RUN ln -s /var/run/docker-host.sock /var/run/docker.sock
|