-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #664 from spryker-sdk/feature/frw-8801/added-spryk…
…erci-83-docker-image FRW-8801 Added sprykerci-83 docker image.
- Loading branch information
Showing
3 changed files
with
85 additions
and
3 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
ARG SPRYKER_PARENT_IMAGE=spryker/php:8.3 | ||
|
||
FROM ${SPRYKER_PARENT_IMAGE} AS application-production-dependencies | ||
|
||
USER root | ||
|
||
RUN apk update \ | ||
&& apk add --no-cache \ | ||
curl \ | ||
git \ | ||
graphviz \ | ||
nodejs \ | ||
npm \ | ||
rsync \ | ||
libxslt-dev \ | ||
&& npm install -g [email protected] | ||
|
||
RUN docker-php-ext-install xsl | ||
|
||
RUN git config --add --system safe.directory /project | ||
|
||
######################################## | ||
# New Relic Extension | ||
# It's already in the core image. | ||
######################################## | ||
|
||
COPY infrastructure/newrelic/newrelic.ini /usr/local/etc/php/conf.d/90-newrelic.ini | ||
|
||
ARG SPRYKER_COMPOSER_MODE | ||
|
||
FROM application-production-dependencies AS application-production-codebase | ||
|
||
RUN chown spryker:spryker ${srcRoot} | ||
|
||
USER spryker | ||
# Authorize SSH Host | ||
RUN mkdir -p /home/spryker/.ssh && \ | ||
chmod 0700 /home/spryker/.ssh && \ | ||
ssh-keyscan github.com > /home/spryker/.ssh/known_hosts | ||
|
||
COPY --chown=spryker:spryker phpstan-bootstrap.php ${srcRoot}/phpstan-bootstrap.php | ||
COPY --chown=spryker:spryker assets ${srcRoot}/assets | ||
COPY --chown=spryker:spryker src ${srcRoot}/src | ||
COPY --chown=spryker:spryker app ${srcRoot}/app | ||
COPY --chown=spryker:spryker db ${srcRoot}/db | ||
COPY --chown=spryker:spryker extension ${srcRoot}/extension | ||
COPY --chown=spryker:spryker config ${srcRoot}/config | ||
COPY --chown=spryker:spryker frontend ${srcRoot}/frontend | ||
COPY --chown=spryker:spryker bin ${srcRoot}/bin | ||
COPY --chown=spryker:spryker .env ${srcRoot}/.env | ||
COPY --chown=spryker:spryker .env.prod ${srcRoot}/.env.prod | ||
COPY --chown=spryker:spryker .env.sprykerci ${srcRoot}/.env.sprykerci | ||
COPY --chown=spryker:spryker composer.json composer.lock package.json package-lock.json bootstrap.php phpstan-bootstrap.php ${srcRoot}/ | ||
|
||
COPY --chown=spryker:spryker infrastructure/newrelic/entrypoint.sh ${srcRoot}/entrypoint.sh | ||
RUN chmod +x ${srcRoot}/entrypoint.sh | ||
|
||
WORKDIR ${srcRoot} | ||
|
||
ENV APP_ENV=sprykerci | ||
ENV NRIA_ENABLE_PROCESS_METRICS=true | ||
|
||
RUN npm install | ||
|
||
RUN composer update \ | ||
spryker/architecture-sniffer \ | ||
laminas/laminas-config \ | ||
laminas/laminas-servicemanager \ | ||
laminas/laminas-stdlib \ | ||
laminas/laminas-filter \ | ||
laminas/laminas-code \ | ||
--no-scripts --no-interaction | ||
|
||
RUN composer install --no-scripts --no-interaction --optimize-autoloader -vvv --no-dev | ||
|
||
RUN composer dump-env sprykerci | ||
|
||
RUN bin/console sdk:init:sdk -n | ||
|
||
RUN bin/console cache:clear --no-debug | ||
|
||
ENTRYPOINT ["/data/entrypoint.sh"] |