-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
41 lines (34 loc) · 1.22 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
FROM debian:bullseye-slim
MAINTAINER Kibatic <ssytem [at] kibatic.com>
# https://getcomposer.org/doc/03-cli.md#composer-allow-superuser
ENV COMPOSER_ALLOW_SUPERUSER 1
ENV PERFORMANCE_OPTIM false
RUN apt-get -qq update > /dev/null && DEBIAN_FRONTEND=noninteractive apt-get -qq -y --no-install-recommends install \
supervisor \
ca-certificates \
nginx \
wget \
apt-transport-https > /dev/null &&\
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg &&\
echo "deb https://packages.sury.org/php/ bullseye main" > /etc/apt/sources.list.d/php.list &&\
apt-get update -qq > /dev/null &&\
DEBIAN_FRONTEND=noninteractive apt-get -qq -y --no-install-recommends install \
unzip \
php7.3 \
php7.3-cli \
php7.3-intl \
php7.3-fpm \
php7.3-xml \
php7.3-mbstring \
php7.3-curl > /dev/null &&\
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* &&\
php -r "readfile('https://getcomposer.org/installer');" | php -- \
--install-dir=/usr/local/bin \
--filename=composer &&\
echo "daemon off;" >> /etc/nginx/nginx.conf &&\
mkdir -p /run/php
COPY rootfs /
WORKDIR /var/www
EXPOSE 80
CMD ["/entrypoint.sh"]