-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathDockerfile.base
More file actions
79 lines (67 loc) · 2.12 KB
/
Dockerfile.base
File metadata and controls
79 lines (67 loc) · 2.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
76
77
78
79
FROM ghcr.io/shyim/wolfi-php/base:latest
ARG PHP_VERSION=8.3
LABEL org.opencontainers.image.source=https://github.com/shopware/shopware-cli
COPY --from=composer/composer:2-bin /composer /usr/bin/composer
RUN <<EOF
set -euxo pipefail
apk add --no-cache \
git \
nodejs-22 \
npm \
bun \
gettext \
openssh-client \
openssh-keyscan \
openssh-keygen \
openssh-keysign \
rsync \
patch \
jq \
bash \
php-${PHP_VERSION} \
php-${PHP_VERSION}-fileinfo \
php-${PHP_VERSION}-openssl \
php-${PHP_VERSION}-ctype \
php-${PHP_VERSION}-curl \
php-${PHP_VERSION}-xml \
php-${PHP_VERSION}-dom \
php-${PHP_VERSION}-phar \
php-${PHP_VERSION}-simplexml \
php-${PHP_VERSION}-xmlreader \
php-${PHP_VERSION}-xmlwriter \
php-${PHP_VERSION}-bcmath \
php-${PHP_VERSION}-iconv \
php-${PHP_VERSION}-gd \
php-${PHP_VERSION}-intl \
php-${PHP_VERSION}-pdo \
php-${PHP_VERSION}-pdo_mysql \
php-${PHP_VERSION}-mysqlnd \
php-${PHP_VERSION}-mbstring \
php-${PHP_VERSION}-pcntl \
php-${PHP_VERSION}-sockets \
php-${PHP_VERSION}-bz2 \
php-${PHP_VERSION}-gmp \
php-${PHP_VERSION}-soap \
php-${PHP_VERSION}-zip \
php-${PHP_VERSION}-sodium \
php-${PHP_VERSION}-redis \
php-${PHP_VERSION}-amqp
if [ "$(printf '%s\n' "8.5" "${PHP_VERSION}" | sort -V | head -n1)" != "8.5" ]; then
apk add --no-cache php-${PHP_VERSION}-opcache
fi
apk add --no-cache gettext
cp /usr/bin/envsubst /envsubst
apk del gettext
mv /envsubst /usr/bin/envsubst
echo 'memory_limit=512M' > /etc/php/conf.d/docker.ini
EOF
COPY internal/verifier/js /opt/verifier/js
COPY internal/verifier/php /opt/verifier/php
RUN <<EOF
set -euxo pipefail
npm install --prefix /opt/verifier/js
composer install --no-dev --working-dir /opt/verifier/php
EOF
ENV SHOPWARE_CLI_TOOLS_DIR=/opt/verifier
COPY scripts/entrypoint.sh /usr/local/bin/entrypoint.sh
CMD ["sh"]