-
Notifications
You must be signed in to change notification settings - Fork 0
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
441ac57
commit 7504202
Showing
18 changed files
with
703 additions
and
19 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,5 @@ | ||
.git | ||
vendor | ||
node_modules | ||
tests | ||
var |
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 |
---|---|---|
|
@@ -41,3 +41,5 @@ SULU_ADMIN_EMAIL= | |
|
||
###> doctrine/phpcr-bundle ### | ||
###< doctrine/phpcr-bundle ### | ||
|
||
VARNISH_SERVER=127.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 |
---|---|---|
|
@@ -43,3 +43,6 @@ node_modules | |
|
||
# System files | ||
.DS_Store | ||
|
||
deploy/secrets.yaml | ||
deploy/charts |
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,42 @@ | ||
FROM php:7.4-apache AS php | ||
|
||
WORKDIR /var/www/html | ||
|
||
# install packages | ||
# inkscape is recommended for handling svg files with imagemagick | ||
RUN apt-get update && apt-get install -y \ | ||
libicu-dev \ | ||
libpng-dev \ | ||
libmagickwand-dev \ | ||
inkscape \ | ||
git \ | ||
unzip \ | ||
libzip-dev | ||
|
||
# install PHP extensions | ||
RUN docker-php-ext-configure intl && docker-php-ext-install -j$(nproc) \ | ||
intl \ | ||
pdo \ | ||
pdo_mysql \ | ||
zip | ||
|
||
RUN pecl install redis apcu imagick && docker-php-ext-enable redis apcu imagick | ||
|
||
# install php dependencies in intermediate container | ||
FROM php AS composer | ||
|
||
COPY symfony.lock /var/www/html/ | ||
COPY composer.* /var/www/html/ | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
RUN composer self-update --1 | ||
RUN composer install --no-interaction --no-cache --no-scripts --no-dev --prefer-dist --optimize-autoloader --apcu-autoloader | ||
|
||
FROM php AS project | ||
|
||
# copy project code and results from intermediate containers | ||
COPY --from=composer /var/www/html/vendor/ /var/www/html/vendor/ | ||
COPY . /var/www/html/ | ||
|
||
# apache config | ||
COPY ./deploy/config/apache.conf /etc/apache2/sites-available/000-default.conf |
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
Oops, something went wrong.