This repository has been archived by the owner on Oct 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
99 lines (83 loc) · 3.08 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
FROM php:8.0-cli
MAINTAINER Jonas Renggli <[email protected]>
RUN apt-get update \
&& apt-get full-upgrade -y \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install -y \
git \
wget \
unzip \
p7zip-full \
rsync \
openssh-client \
gnupg \
&& rm -rf /var/lib/apt/lists/*
RUN apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com
# soap
RUN buildRequirements="libxml2-dev" \
&& apt-get update && apt-get install -y ${buildRequirements} \
&& docker-php-ext-install soap \
&& apt-get purge -y ${buildRequirements} \
&& rm -rf /var/lib/apt/lists/*
# gd
RUN buildRequirements="libpng-dev libjpeg-dev libfreetype6-dev" \
&& apt-get update && apt-get install -y ${buildRequirements} \
&& docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include \
&& docker-php-ext-install gd \
&& rm -rf /var/lib/apt/lists/*
# intl
RUN buildRequirements="libicu-dev g++" \
&& apt-get update && apt-get install -y ${buildRequirements} \
&& docker-php-ext-install intl \
&& apt-get purge -y ${buildRequirements} \
&& runtimeRequirements="libicu63" \
&& apt-get install -y --auto-remove ${runtimeRequirements} \
&& rm -rf /var/lib/apt/lists/*
# zip
RUN buildRequirements="zlib1g-dev libzip-dev" \
&& apt-get update && apt-get install -y ${buildRequirements} \
&& docker-php-ext-install zip \
&& apt-get purge -y ${buildRequirements} \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer -O - -q | php -- --filename=composer --install-dir=/usr/bin
RUN mkdir /tmp/ec &&\
wget -O /tmp/ec/ec-linux-amd64.tar.gz https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.3.5/ec-linux-amd64.tar.gz &&\
tar -xvzf /tmp/ec/ec-linux-amd64.tar.gz &&\
mv bin/ec-linux-amd64 /usr/bin/ec &&\
rm -rf /tmp/ec
RUN echo 'export PATH=~/.composer/vendor/bin:$PATH' >> ~/.bashrc
RUN composer global require "squizlabs/php_codesniffer=*"
# node.js, npm
RUN apt-get update \
&& apt-get install -y \
gnupg \
&& rm -rf /var/lib/apt/lists/* \
&& curl -sL https://deb.nodesource.com/setup_14.x | bash - \
&& apt-get update \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
# yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get install -y yarn \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g grunt-cli bower
RUN apt-get update \
&& apt-get install -y \
ruby \
ruby-dev \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install -y \
automake \
libtool \
&& rm -rf /var/lib/apt/lists/* \
&& gem install compass
RUN apt-get update \
&& apt-get install -y \
build-essential \
g++ \
&& rm -rf /var/lib/apt/lists/*