Skip to content

Commit 29e2387

Browse files
authored
Create Dockerfile
1 parent 8d07b85 commit 29e2387

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

Dockerfile

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
FROM php:8.1.5RC1-cli-alpine
2+
3+
# Optional, force UTC as server time
4+
RUN echo "UTC" > /etc/timezone
5+
6+
# Install essential build tools
7+
RUN apk add --update --no-cache \
8+
git bash \
9+
npm yarn \
10+
autoconf g++ make \
11+
#soap
12+
libxml2-dev \
13+
#zip
14+
libzip-dev \
15+
#phar
16+
openssl-dev \
17+
#gd
18+
libpng-dev
19+
20+
#bzip2-dev
21+
22+
# Install composer
23+
ENV COMPOSER_HOME /composer
24+
ENV PATH ./vendor/bin:/composer/vendor/bin:$PATH
25+
ENV COMPOSER_ALLOW_SUPERUSER 1
26+
RUN curl -s https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer
27+
28+
29+
# Preinstalled with
30+
# ctype curl date dom fileinfo filter ftp hash
31+
# iconv json libxml mbstring mysqlnd openssl
32+
# pcre PDO pdo_sqlite Phar posix readline session
33+
# SimpleXML sodium sqlite3 standard tokenizer
34+
# xml xmlreader xmlwriter zlib
35+
36+
RUN docker-php-ext-install \
37+
pcntl posix \
38+
mysqli \
39+
zip \
40+
soap \
41+
shmop \
42+
phar \
43+
gd exif fileinfo \
44+
opcache
45+
46+
47+
RUN pecl install xdebug
48+
RUN docker-php-ext-enable xdebug
49+
RUN echo 'xdebug.mode="coverage"' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
50+
51+
ENTRYPOINT ['bash']

0 commit comments

Comments
 (0)