forked from nowiko/AliceBundle
-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Add development container to docker-compose.yaml (#62)
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
** |
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,24 @@ | ||
# renovate: datasource=docker depName=php | ||
ARG PHP_VERSION=8.3.2 | ||
|
||
# renovate: datasource=docker depName=alpine | ||
ARG ALPINE_VERSION=3.18 | ||
|
||
FROM php:${PHP_VERSION}-alpine${ALPINE_VERSION} | ||
|
||
# php extensions installer: https://github.com/mlocati/docker-php-extension-installer | ||
COPY --from=mlocati/php-extension-installer --link /usr/bin/install-php-extensions /usr/local/bin/ | ||
|
||
RUN set -eux; \ | ||
install-php-extensions pdo_mysql mongodb | ||
|
||
# https://getcomposer.org/doc/03-cli.md#composer-allow-superuser | ||
ENV PATH="${PATH}:/root/.composer/vendor/bin" | ||
ENV COMPOSER_HOME=/tmp/composer | ||
ENV COMPOSER_CACHE_DIR=/tmp/composer/cache | ||
RUN mkdir -p /tmp/composer/cache | ||
RUN chmod ugo+w /tmp/composer/cache | ||
|
||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
||
CMD ["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