-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
67 lines (56 loc) · 1.5 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
FROM php:8.3-cli-alpine
# Optional, force UTC as server time
RUN echo "UTC" > /etc/timezone
# Install essential build tools
RUN apk add --update --no-cache \
g++ autoconf make curl linux-headers \
#soap
libxml2 libxml2-dev \
#zip
libzip libzip-dev \
#phar
openssl openssl-dev \
#gd
libpng libpng-dev \
#intl
icu-dev \
#xsl
libxslt-dev
# Install composer
ENV COMPOSER_HOME /composer
ENV PATH ./vendor/bin:/composer/vendor/bin:$PATH
ENV COMPOSER_ALLOW_SUPERUSER 1
RUN curl -s https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer
# Preinstalled with
# ctype curl date dom fileinfo filter ftp hash
# iconv json libxml mbstring mysqlnd openssl
# pcre PDO pdo_sqlite Phar posix readline session
# SimpleXML sodium sqlite3 standard tokenizer
# xml xmlreader xmlwriter zlib
RUN docker-php-ext-install \
pcntl posix \
mysqli pdo_mysql \
zip \
soap \
shmop \
phar \
bcmath \
gd exif fileinfo \
opcache \
sockets \
xsl
RUN docker-php-ext-configure intl && docker-php-ext-install intl
RUN pecl install xdebug
RUN docker-php-ext-enable xdebug pdo_mysql
RUN echo 'xdebug.mode="coverage"' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
RUN rm -rf /tmp/*
RUN apk del libxml2-dev libzip-dev openssl-dev libpng-dev icu-dev
# Install other libs
RUN apk add --update --no-cache \
python3 \
openssh-client rsync \
git bash \
npm yarn
RUN npm i -g pnpm
SHELL ["/bin/bash", "-c"]
ENTRYPOINT ["/bin/bash", "-l", "-c"]