-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
43 lines (36 loc) · 1.17 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
FROM ubuntu:jammy
ENV NODE_VERSION "node_18.x"
ENV DISTRO "jammy"
ENV COMPOSER_VERSION "2.5.5"
LABEL MAINTAINER [email protected]
# Install andrej ppa for modern PHP versions
RUN apt-get update &&\
apt-get install -y --no-install-recommends \
software-properties-common \
gnupg \
gnupg-agent &&\
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php &&\
rm -rf /var/lib/apt/lists
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
RUN apt-get update &&\
apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
git \
php8.1-cli \
php8.1-zip \
python2-minimal \
unzip \
wget \
zip &&\
rm -rf /var/lib/apt/lists
# Get Composer
RUN wget "https://getcomposer.org/download/$COMPOSER_VERSION/composer.phar" -O /usr/local/bin/composer &&\
chmod +x /usr/local/bin/composer
# Install NodeJS
RUN curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - &&\
echo "deb https://deb.nodesource.com/$NODE_VERSION $DISTRO main" > /etc/apt/sources.list.d/nodesource.list &&\
apt-get update &&\
apt-get install -y nodejs &&\
rm -rf /var/lib/apt/lists