-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b022051
commit af5b125
Showing
9 changed files
with
66 additions
and
218 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM uselagoon/php-8.1-cli:latest | ||
|
||
ENV WEBROOT web | ||
ENV PATH "/app/vendor/bin:${PATH}" | ||
|
||
COPY ./composer.* /app/ | ||
RUN composer install --no-dev --no-interaction --optimize-autoloader | ||
|
||
COPY . /app |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
ARG PHP_IMAGE | ||
FROM ${PHP_IMAGE} as php | ||
ARG CLI_IMAGE | ||
FROM ${CLI_IMAGE} as cli | ||
|
||
FROM nginx:1-alpine | ||
FROM uselagoon/nginx-drupal:latest | ||
|
||
COPY .docker/nginx.conf /etc/nginx/conf.d/default.conf | ||
ENV WEBROOT web | ||
ENV BASIC_AUTH off | ||
|
||
COPY --from=php /app /app | ||
COPY --from=cli /app /app |
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 |
---|---|---|
@@ -1,31 +1,6 @@ | ||
FROM php:8.1-fpm-alpine | ||
ARG CLI_IMAGE | ||
FROM ${CLI_IMAGE} as cli | ||
|
||
WORKDIR /app | ||
|
||
ENV MEMCACHED_DEPS zlib-dev libmemcached-dev cyrus-sasl-dev | ||
ENV COMPOSER_ALLOW_SUPERUSER 1 | ||
|
||
RUN set -xe \ | ||
&& apk add --no-cache --update --virtual .phpize-deps $PHPIZE_DEPS \ | ||
&& apk add --no-cache --update --virtual .memcached-deps $MEMCACHED_DEPS \ | ||
&& apk add --no-cache --update oniguruma-dev libpng-dev libwebp-dev jpeg-dev libjpeg-turbo-dev freetype-dev libmemcached-libs zlib mysql-client tzdata ca-certificates zip git bash \ | ||
&& update-ca-certificates \ | ||
&& docker-php-ext-configure gd --with-freetype --with-webp --with-jpeg \ | ||
&& docker-php-ext-install pdo_mysql mbstring opcache gd \ | ||
&& pecl install memcache \ | ||
&& docker-php-ext-enable memcache \ | ||
&& docker-php-source delete \ | ||
&& rm -rf /tmp/* /var/cache/* /usr/src/* \ | ||
&& ln -sf /app/vendor/bin/drush /usr/local/bin/drush \ | ||
&& apk del .memcached-deps .phpize-deps | ||
|
||
COPY .docker/php.ini /usr/local/etc/php/conf.d/zzz-custom.ini | ||
|
||
# Composer install all assets | ||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer | ||
COPY composer.json composer.lock ./ | ||
RUN composer install --no-dev --profile --no-interaction && composer clear-cache | ||
|
||
# Copy application files | ||
COPY . . | ||
FROM uselagoon/php-8.1-fpm:latest | ||
|
||
COPY --from=cli /app /app |
This file was deleted.
Oops, something went wrong.
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