generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.Dockerfile
30 lines (25 loc) · 932 Bytes
/
.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-full
USER root
RUN add-apt-repository ppa:ondrej/php && \
install-packages php8.0 \
php8.0-dev \
php8.0-bcmath \
php8.0-ctype \
php8.0-curl \
php8.0-dom \
php8.0-gd \
php8.0-intl \
php8.0-mbstring \
php8.0-mysql \
php8.0-pgsql \
php8.0-sqlite3 \
php8.0-tokenizer \
php8.0-xml \
php8.0-zip && \
update-alternatives --set php /usr/bin/php8.0
USER root
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
php composer-setup.php --install-dir /usr/bin --filename composer && \
php -r "unlink('composer-setup.php');"
USER gitpod