-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
59 lines (49 loc) · 1.19 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
FROM php-base AS common
LABEL maintainer="ToshY (github.com/ToshY)"
COPY --from=ghcr.io/composer/docker:2.8 /usr/bin/composer /usr/local/bin/composer
COPY --from=ghcr.io/mlocati/php-extension-installer:2.7 /usr/bin/install-php-extensions /usr/local/bin/
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN <<EOT sh
set -ex
install-php-extensions mysqli-stable \
pdo_mysql-stable \
exif-stable \
ftp-stable \
gd-stable \
imap-stable \
opcache-stable \
soap-stable \
zip-stable \
intl-stable \
gettext-stable \
sysvsem-stable \
amqp-stable \
redis-stable \
pcntl-stable
apt-get update
apt-get install -y libexpat1=2.5.0-1+deb12u1 libgstreamer1.0-0=1.22.0-2+deb12u1
EOT
WORKDIR /app
FROM common AS base
RUN <<EOT sh
set -ex
apt-get install -y \
software-properties-common \
zip \
unzip
apt-get clean
rm -rf /var/lib/apt/lists/*
EOT
FROM common AS ffmpeg
RUN <<EOT sh
apt-get install -y \
software-properties-common \
nano \
zip \
unzip \
ffmpeg \
mkvtoolnix \
libimage-exiftool-perl
apt-get clean
rm -rf /var/lib/apt/lists/*
EOT