-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 docker support for OSS contributors (#3)
- Loading branch information
Showing
6 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: "3.8" | ||
|
||
services: | ||
php: | ||
build: | ||
context: ./docker | ||
volumes: | ||
- .:/var/www/html | ||
composer: | ||
build: | ||
context: ./docker | ||
volumes: | ||
- .:/var/www/html | ||
entrypoint: ["composer"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
ARG PHP=8.1 | ||
FROM php:${PHP}-cli-alpine | ||
|
||
RUN apk update \ | ||
&& apk add zip libzip-dev icu-dev git | ||
|
||
RUN docker-php-ext-configure zip | ||
RUN docker-php-ext-install zip | ||
RUN docker-php-ext-enable zip | ||
|
||
RUN docker-php-ext-configure intl | ||
RUN docker-php-ext-install intl | ||
RUN docker-php-ext-enable intl | ||
|
||
RUN apk add --no-cache $PHPIZE_DEPS linux-headers | ||
RUN pecl install pcov | ||
RUN docker-php-ext-enable pcov | ||
|
||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer | ||
|
||
WORKDIR /var/www/html | ||
|
||
ENTRYPOINT ["php"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters