-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
68 lines (64 loc) · 2.18 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM ubuntu:jammy
ENV DEBIAN_FRONTEND=noninteractive
ENV COMPOSER_ALLOW_SUPERUSER=1
ENV COMPOSER_NO_INTERACTION=1
ENV COMPOSER_BIN_DIR=/usr/local/bin
ENV COMPOSER_HOME=/root/.composer
ENV PATH="$COMPOSER_BIN_DIR:$PATH"
ENV NODE_MAJOR=16
# Install Ondrej repos for Ubuntu Jammy Jellyfish, PHP, composer and selected extensions
RUN apt-get update \
&& mkdir -p $COMPOSER_HOME \
&& apt-get install -y --no-install-recommends gnupg locales \
&& echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu jammy main" > /etc/apt/sources.list.d/ondrej-php.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C \
&& apt-get update \
&& apt-get -y --no-install-recommends install \
git \
sudo \
openssh-client \
bash \
ca-certificates \
apt-transport-https \
curl \
unzip \
php8.2-apcu \
php8.2-cli \
php8.2-curl \
php8.2-bcmath \
php8.2-gd \
php8.2-mbstring \
php8.2-opcache \
php8.2-intl \
php8.2-pdo \
php8.2-pgsql \
php8.2-mysql \
php8.2-sqlite3 \
php8.2-readline \
php8.2-redis \
php8.2-xml \
php8.2-soap \
php8.2-xmlrpc \
php8.2-zip \
rsync \
libpng-dev \
libjpeg-dev \
libtiff-dev \
libgif-dev \
awscli \
&& mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install nodejs \
&& apt-get clean \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=$COMPOSER_BIN_DIR --filename=composer \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* $COMPOSER_HOME/cache/* \
&& php -v \
&& composer --version \
&& node -v \
&& npm -v
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
CMD ["bash"]