-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
50 lines (42 loc) · 1.36 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
FROM debian:bullseye-slim
LABEL maintainer="Kibatic [email protected]"
# 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 \
apt-utils \
supervisor \
ca-certificates \
nginx \
wget \
vim \
git \
curl \
openssl \
make \
unzip \
apt-transport-https > /dev/null && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN 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 \
php8.0 \
php8.0-cli \
php8.0-intl \
php8.0-fpm \
php8.0-xml \
php8.0-mbstring \
php8.0-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"]