-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
75 lines (62 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
75 lines (62 loc) · 1.12 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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.8 /usr/bin/install-php-extensions /usr/local/bin/
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN <<EOT sh
set -ex
install-php-extensions mysqli \
pdo_mysql \
exif \
ftp \
gd \
opcache \
soap \
zip \
intl \
gettext \
sysvsem \
amqp \
redis \
pcntl
EOT
WORKDIR /app
FROM common AS base
RUN <<EOT sh
set -ex
apt-get update
apt-get install -y \
zip \
unzip
apt-get clean
rm -rf /var/lib/apt/lists/*
EOT
FROM common AS ffmpeg
RUN <<EOT sh
set -ex
apt-get update
apt-get install -y \
zip \
unzip \
ffmpeg \
mkvtoolnix \
libimage-exiftool-perl
apt-get clean
rm -rf /var/lib/apt/lists/*
EOT
FROM common AS otel
RUN <<EOT sh
set -ex
apt-get update
apt-get install -y \
zip \
unzip
apt-get clean
rm -rf /var/lib/apt/lists/*
EOT
RUN <<EOT sh
set -ex
install-php-extensions opentelemetry \
grpc-1.78.0RC2 \
protobuf
EOT