forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.Dockerfile
30 lines (26 loc) · 1.23 KB
/
.gitpod.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
FROM gitpod/workspace-base:latest
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
RUN sudo add-apt-repository ppa:ondrej/php -y && \
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo bash - && \
curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh' | sudo -E bash && \
curl -1sLf 'https://dl.cloudsmith.io/public/friendsofshopware/stable/setup.deb.sh' | sudo -E bash && \
sudo apt-get install -y \
php8.1-fpm php8.1-mysql php8.1-curl php8.1-gd php8.1-xml php8.1-zip php8.1-opcache php8.1-mbstring php8.1-intl php8.1-cli \
rsync \
symfony-cli \
shopware-cli \
mysql-client-8.0 \
nodejs && \
sudo apt-get upgrade -y && \
echo "memory_limit=512M" > php.ini && \
echo "assert.active=0" >> php.ini && \
echo "opcache.interned_strings_buffer=20" >> php.ini && \
echo "zend.detect_unicode=0" >> php.ini && \
echo "realpath_cache_ttl=3600" >> php.ini && \
sudo cp php.ini /etc/php/8.1/cli/conf.d/99-overrides.ini && \
sudo cp php.ini /etc/php/8.1/fpm/conf.d/99-overrides.ini && \
rm php.ini && \
echo "[client]" > ~/.my.cnf && \
echo "host=127.0.0.1" >> ~/.my.cnf && \
echo "user=root" >> ~/.my.cnf && \
echo "password=root" >> ~/.my.cnf