-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile.base
More file actions
36 lines (29 loc) · 1.85 KB
/
Dockerfile.base
File metadata and controls
36 lines (29 loc) · 1.85 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
ARG PHP_VERSION
FROM php:${PHP_VERSION}-cli-alpine3.18
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/
RUN \
apk add --no-cache git zip unzip zlib-dev libpng-dev icu-dev libzip-dev bash jq \
mysql mysql-client python3 make g++ && \
echo 'alias ll="ls -lha"' >> ~/.bashrc && \
install-php-extensions gd intl pdo_mysql zip xsl pcov redis bcmath && \
curl -1sLf 'https://dl.cloudsmith.io/public/friendsofshopware/stable/setup.alpine.sh' | bash && \
apk add --no-cache shopware-cli
RUN \
mysql_install_db --datadir=/var/lib/mysql --user=mysql && \
echo "pdo_mysql.default_socket=/run/mysqld/mysqld.sock" > /usr/local/etc/php/conf.d/pdo_mysql.ini && \
echo "mysqli.default_socket=/run/mysqld/mysqld.sock" > /usr/local/etc/php/conf.d/mysqli.ini && \
echo "memory_limit=1G" > /usr/local/etc/php/conf.d/memory.ini && \
echo "pcov.enabled = 0" > /usr/local/etc/php/conf.d/pcov.ini && \
mkdir /run/mysqld/ && chown -R mysql:mysql /run/mysqld/
COPY rootfs/ /
ARG PLUGIN_UPLOADER_VERSION=0.3.16
ARG PHP_SCOPER_VERSION=0.14.0
ARG COMPOSER_VERSION=2.4.4
RUN \
wget -q https://github.com/FriendsOfShopware/FroshPluginUploader/releases/download/${PLUGIN_UPLOADER_VERSION}/frosh-plugin-upload.phar -O /opt/bin/plugin-uploader && \
wget -q https://github.com/humbug/php-scoper/releases/download/${PHP_SCOPER_VERSION}/php-scoper.phar -O /opt/bin/php-scoper && \
wget -q https://github.com/composer/composer/releases/download/${COMPOSER_VERSION}/composer.phar -O /opt/bin/composer && \
chmod +x /opt/bin/plugin-uploader /opt/bin/php-scoper /opt/bin/composer && \
wget -q https://raw.githubusercontent.com/shopware/platform/v6.4.5.1/src/Core/TestBootstrapper.php -O /opt/share/shopware/tests/TestBootstrapperFallback.php
ENV PATH="/opt/bin:/opt/shopware/bin:${PATH}"
ENV COMPOSER_ALLOW_SUPERUSER=1