-
Notifications
You must be signed in to change notification settings - Fork 87
/
Dockerfile-8.1
73 lines (68 loc) · 2.09 KB
/
Dockerfile-8.1
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
#
#--------------------------------------------------------------------------
# Image Setup
#--------------------------------------------------------------------------
#
FROM phusion/baseimage:focal-1.0.0
LABEL io.laradock.image.authors="Mahm1oud Zalt <[email protected]>"
LABEL io.laradock.image.authors="Thomas Combe <[email protected]>"
ENV DEBIAN_FRONTEND=noninteractive
RUN locale-gen en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
ENV LC_CTYPE=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV TERM xterm
RUN set -eux \
# Add the "PHP 8" ppa
&& apt-get install -y software-properties-common \
&& add-apt-repository -y ppa:ondrej/php \
#
#--------------------------------------------------------------------------
# Software's Installation
#--------------------------------------------------------------------------
#
&& echo 'DPkg::options { "--force-confdef"; };' >> /etc/apt/apt.conf \
# Install "PHP Extentions", "libraries", "Software's"
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --allow-downgrades --allow-remove-essential \
--allow-change-held-packages \
php8.1-cli \
php8.1-common \
php8.1-curl \
php8.1-intl \
php8.1-xml \
php8.1-mbstring \
php8.1-mysql \
php8.1-pgsql \
php8.1-sqlite \
php8.1-sqlite3 \
php8.1-zip \
php8.1-bcmath \
php8.1-memcached \
php8.1-gd \
php8.1-dev \
pkg-config \
libcurl4-openssl-dev \
libedit-dev \
libssl-dev \
libxml2-dev \
xz-utils \
libsqlite3-dev \
rsync \
sqlite3 \
git \
curl \
vim \
nano \
tree \
postgresql-client \
&& apt-get clean \
#####################################
# Composer:
#####################################
# Install composer and add its bin to the PATH.
&& curl -s http://getcomposer.org/installer | php \
&& echo "export PATH=${PATH}:/var/www/vendor/bin" >> ~/.bashrc \
&& mv composer.phar /usr/local/bin/composer