-
Notifications
You must be signed in to change notification settings - Fork 34
/
Dockerfile
78 lines (69 loc) · 1.6 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
69
70
71
72
73
74
75
76
77
78
FROM ubuntu:20.04
ENV TZ=UTC
RUN export LC_ALL=C.UTF-8
RUN DEBIAN_FRONTEND=noninteractive
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update
RUN apt-get install -y \
sudo \
autoconf \
autogen \
language-pack-en-base \
wget \
zip \
unzip \
curl \
rsync \
ssh \
openssh-client \
git \
build-essential \
apt-utils \
software-properties-common \
nasm \
libjpeg-dev \
libpng-dev \
libpng16-16
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
# PHP
RUN LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php && apt-get update && apt-get install -y php8.1
RUN apt-get install -y \
php8.1-curl \
php8.1-gd \
php8.1-dev \
php8.1-xml \
php8.1-bcmath \
php8.1-mysql \
php8.1-pgsql \
php8.1-mbstring \
php8.1-zip \
php8.1-bz2 \
php8.1-sqlite \
php8.1-soap \
php8.1-intl \
php8.1-imap \
php8.1-imagick \
php-memcached
RUN command -v php
# Composer
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer && \
chmod +x /usr/local/bin/composer && \
composer self-update
RUN command -v composer
# Node.js
RUN curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh
RUN bash nodesource_setup.sh
RUN apt-get install nodejs -y
RUN npm install npm@6 -g
RUN command -v node
RUN command -v npm
# Other
RUN mkdir ~/.ssh
RUN touch ~/.ssh_config
# Display versions installed
RUN php -v
RUN composer --version
RUN node -v
RUN npm -v