forked from shopware/shopware-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.base
36 lines (30 loc) · 1.34 KB
/
Dockerfile.base
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
LABEL org.opencontainers.image.source https://github.com/FriendsOfShopware/shopware-cli
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/
COPY --from=composer/composer:2-bin /composer /usr/bin/composer
RUN apt-get update \
&& apt-get install --no-install-recommends -y git unzip \
&& IPE_GD_WITHOUTAVIF=1 install-php-extensions bcmath gd intl mysqli pdo_mysql sockets bz2 soap zip gmp pcntl redis imagick xsl calendar amqp \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/docker.ini
RUN curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash - \
&& . /root/.bashrc \
&& nvm install 16 \
&& nvm install 18 \
&& nvm alias default 18 \
&& nvm use default \
&& npm config set update-notifier false \
&& npm config set audit false \
&& npm config set fund false \
&& npm config set loglevel warn \
&& nvm cache clear \
&& rm -rf /root/.npm \
&& npm install --global yarn bun \
&& curl -fsSL https://get.pnpm.io/install.sh | SHELL="$(which bash)" sh - \
&& npm cache clean --force
COPY scripts/entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["bash"]