-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
55 lines (48 loc) · 959 Bytes
/
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
FROM alpine:3.17.2
WORKDIR /var/www/localhost/htdocs
RUN apk update; \
apk add --no-cache apache2 \
php-apache2 \
apache2-proxy \
apache2-ssl \
apache2-utils \
curl \
unzip \
gcc \
musl-dev \
libnsl \
libaio \
autoconf \
make \
tzdata
# Install php dependecies
RUN apk add php \
php-gd \
php-mysqli \
php-zlib \
php-curl \
php-pear \
php-openssl \
php-pdo_mysql \
php-mysqli \
# php-mcrypt \
php-session \
php-simplexml \
php-json \
php-xmlreader \
php-imap \
php-mbstring \
php-phar \
php-intl \
php-opcache
# php-dev \
# php-apcu \
# php-xmlwriter
# Add my own php config.
RUN ln -sf /var/www/localhost/htdocs/env/config/php.ini /etc/php81/conf.d/
RUN ln -sf /var/www/localhost/htdocs/env/config/apache.conf /etc/apache2/conf.d/
RUN rm -rf /tmp/*.zip /var/cache/apk/* /tmp/oracle-sdk
RUN apk del unzip make curl
RUN echo "Mutex posixsem" >> /etc/apache2/apache2.conf
EXPOSE 80
CMD ["/usr/sbin/httpd", "-D", "FOREGROUND"]