-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
75 lines (60 loc) · 2.27 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
FROM php:7.4.33-apache
WORKDIR /var/www/html
# change this value if you want to force a rebuild without cache
ARG CACHEBUST=3
ENV PATH=$PATH:/var/www/dry/src/bin
# Update
RUN apt update
RUN apt -y upgrade
# set timezone
RUN apt-get update && \
apt-get install -yq tzdata && \
ln -fs /usr/share/zoneinfo/Europe/Brussels /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
# install nodenv
RUN apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates python git-core
RUN git clone https://github.com/nodenv/nodenv.git /root/.nodenv && \
git clone https://github.com/nodenv/node-build.git /root/.nodenv/plugins/node-build && \
git clone https://github.com/nodenv/nodenv-package-rehash.git /root/.nodenv/plugins/nodenv-package-rehash && \
git clone https://github.com/nodenv/nodenv-update.git /root/.nodenv/plugins/nodenv-update
ENV PATH /root/.nodenv/shims:/root/.nodenv/bin:$PATH
RUN nodenv install 10.24.1
RUN nodenv install 12.22.12
RUN nodenv install 14.21.3
RUN nodenv install 16.20.1
RUN export NODENV_VERSION=16.20.1 && corepack enable
RUN nodenv install 18.16.1
RUN export NODENV_VERSION=18.16.1 && corepack enable
RUN nodenv install 20.11.1
RUN export NODENV_VERSION=20.11.1 && corepack enable
RUN apt -y install rsync
RUN apt -y install git
RUN apt -y install openssh-client
RUN apt -y install zip unzip autoconf automake libtool nasm zlib1g-dev libzip-dev libpng-dev libimagequant-dev
RUN apt update
RUN apt -y install gcc g++ make
RUN #npm config set unsafe-perm true
RUN apt -y install nano
# install php extensions
RUN apt -y install libmagickwand-dev --no-install-recommends
RUN pecl install imagick
RUN pecl install xdebug-3.1.5
RUN apt install -y libjpeg-dev libpng-dev libfreetype6-dev
RUN docker-php-ext-configure gd --with-jpeg && docker-php-ext-install gd
RUN docker-php-ext-install zip
RUN docker-php-ext-install mysqli
RUN docker-php-ext-enable imagick
RUN docker-php-ext-install exif
RUN docker-php-ext-enable xdebug
RUN docker-php-ext-install soap
# Clean
RUN apt clean
RUN apt autoremove
# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Enable apache modules
RUN a2enmod rewrite
RUN a2enmod expires
# Symbolic link php executable for dry
RUN ln -s /usr/local/bin/php /usr/bin/php
CMD ["/bin/bash"]