-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (28 loc) · 1.22 KB
/
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
31
32
33
34
# @package PHP Prefixer Build Action
#
# @author PHP Prefixer <team@php-prefixer.com>
# @copyright Copyright (c)2019-2021 Desarrollos Inteligentes Virtuales, SL. All rights reserved.
# @license MIT
#
# @see https://php-prefixer.com
#
# https://github.com/docker-library/php/blob/d2b630dc89b257cb80d6fc99e177caae152830b8/8.0/buster/cli/Dockerfile
# https://hub.docker.com/_/php
#
FROM php:8.0-cli
LABEL maintainer="PHP-Prefixer / Desarrollos Inteligentes Virtuales, SL. <team@php-prefixer.com>"
RUN curl -sSfL -o /usr/local/bin/php-prefixer-cli.phar 'https://github.com/PHP-Prefixer/php-prefixer-cli/releases/download/0.0.6/php-prefixer-cli.phar' \
&& chmod +x /usr/local/bin/php-prefixer-cli.phar \
&& curl -sSfL -o /usr/local/bin/composer 'https://getcomposer.org/composer.phar' \
&& chmod +x /usr/local/bin/composer \
&& apt-get update \
&& apt-get install -y --no-install-recommends git rsync libzip-dev zip unzip \
&& docker-php-ext-configure zip \
&& docker-php-ext-install zip \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
&& apt-get install -y nodejs
COPY dist /dist
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]