Skip to content

Commit

Permalink
Merge branch 'spryker-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ynnoig committed Jul 18, 2024
2 parents f69c284 + c511565 commit bc7b20f
Show file tree
Hide file tree
Showing 10 changed files with 443 additions and 30 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/ci.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: CD / Build

on: push

Expand All @@ -10,7 +10,6 @@ jobs:
matrix:
include:
## Alpine

### Alpine 3.18
- image: "alpine/3.18/8.1/Dockerfile"
tags: [ "loeffelhardt/php:8.1-alpine3.18" ]
Expand All @@ -21,10 +20,18 @@ jobs:

### Alpine 3.19
- image: "alpine/3.19/8.1/Dockerfile"
tags: [ "loeffelhardt/php:8.1", "loeffelhardt/php:8.1-alpine3.19" ]
tags: [ "loeffelhardt/php:8.1-alpine3.19" ]
platforms: [ "linux/amd64", "linux/arm64" ]
- image: "alpine/3.19/8.2/Dockerfile"
tags: [ "loeffelhardt/php:latest", "loeffelhardt/php:8.2", "loeffelhardt/php:8.2-alpine3.19" ]
tags: [ "loeffelhardt/php:8.2-alpine3.19" ]
platforms: [ "linux/amd64", "linux/arm64" ]

### Alpine 3.20
- image: "alpine/3.20/8.1/Dockerfile"
tags: [ "loeffelhardt/php:8.1", "loeffelhardt/php:8.1-alpine3.20" ]
platforms: [ "linux/amd64", "linux/arm64" ]
- image: "alpine/3.20/8.2/Dockerfile"
tags: [ "loeffelhardt/php:latest", "loeffelhardt/php:8.2", "loeffelhardt/php:8.2-alpine3.20" ]
platforms: [ "linux/amd64", "linux/arm64" ]

## Debian
Expand All @@ -37,20 +44,20 @@ jobs:
platforms: [ "linux/amd64", "linux/arm64" ]
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
push: ${{ github.ref == 'refs/heads/main' }}
file: ${{ matrix.image }}
Expand Down
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
Extends official Spryker PHP Docker images with extensions and tools to be able to run Löffelhardt.

* Based on official PHP images
* `Alpine 3.18`
* `Alpine 3.20`
* `Alpine 3.19`
* `Alpine 3.18`
* `Debian "bullseye"`

* Users: `root`, `spryker`
Expand All @@ -28,15 +29,17 @@ Extends official Spryker PHP Docker images with extensions and tools to be able

| Tag | PHP version | Linux distribution | Details | Dockerfile |
|:------------------------------------------------------------------------------------------------------|:------------|:-------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|
| [loeffelhardt/php:latest](https://hub.docker.com/r/loeffelhardt/php/tags?name=latest) | 8.2.18 | Alpine 3.19 | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:latest.svg)](https://microbadger.com/images/loeffelhardt/php:latest "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/alpine/3.18/8.2/Dockerfile) |
| [loeffelhardt/php:8.2](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.2) | 8.2.18 | Alpine 3.19 | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.1.svg)](https://microbadger.com/images/loeffelhardt/php:8.1 "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/alpine/3.18/8.2/Dockerfile) |
| [loeffelhardt/php:8.1](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.1) | 8.1.28 | Alpine 3.19 | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.1.svg)](https://microbadger.com/images/loeffelhardt/php:8.1 "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/alpine/3.18/8.1/Dockerfile) |
| [loeffelhardt/php:8.2-alpine3.18](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.2-alpine3.18) | 8.2.18 | Alpine 3.18 | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.2-alpine3.18.svg)](https://microbadger.com/images/loeffelhardt/php:8.2-alpine3.18 "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/alpine/3.18/8.2/Dockerfile) |
| [loeffelhardt/php:latest](https://hub.docker.com/r/loeffelhardt/php/tags?name=latest) | 8.2.20 | Alpine 3.20 | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:latest.svg)](https://microbadger.com/images/loeffelhardt/php:latest "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/alpine/3.20/8.2/Dockerfile) |
| [loeffelhardt/php:8.2](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.2) | 8.2.20 | Alpine 3.20 | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.2.svg)](https://microbadger.com/images/loeffelhardt/php:8.2 "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/alpine/3.20/8.2/Dockerfile) |
| [loeffelhardt/php:8.1](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.1) | 8.1.29 | Alpine 3.20 | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.1.svg)](https://microbadger.com/images/loeffelhardt/php:8.1 "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/alpine/3.20/8.1/Dockerfile) |
| [loeffelhardt/php:8.2-alpine3.20](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.2-alpine3.19) | 8.2.20 | Alpine 3.20 | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.2-alpine3.18.svg)](https://microbadger.com/images/loeffelhardt/php:8.2-alpine3.20 "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/alpine/3.20/8.2/Dockerfile) |
| [loeffelhardt/php:8.1-alpine3.20](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.1-alpine3.19) | 8.1.29 | Alpine 3.20 | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.1-alpine3.19.svg)](https://microbadger.com/images/loeffelhardt/php:8.1-alpine3.20 "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/alpine/3.20/8.1/Dockerfile) |
| [loeffelhardt/php:8.2-alpine3.19](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.2-alpine3.19) | 8.2.20 | Alpine 3.19 | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.2-alpine3.18.svg)](https://microbadger.com/images/loeffelhardt/php:8.2-alpine3.19 "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/alpine/3.19/8.2/Dockerfile) |
| [loeffelhardt/php:8.1-alpine3.19](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.1-alpine3.19) | 8.1.29 | Alpine 3.19 | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.1-alpine3.19.svg)](https://microbadger.com/images/loeffelhardt/php:8.1-alpine3.19 "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/alpine/3.19/8.1/Dockerfile) |
| [loeffelhardt/php:8.2-alpine3.18](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.2-alpine3.18) | 8.2.19 | Alpine 3.18 | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.2-alpine3.18.svg)](https://microbadger.com/images/loeffelhardt/php:8.2-alpine3.18 "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/alpine/3.18/8.2/Dockerfile) |
| [loeffelhardt/php:8.1-alpine3.18](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.1-alpine3.18) | 8.1.28 | Alpine 3.18 | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.1-alpine3.18.svg)](https://microbadger.com/images/loeffelhardt/php:8.1-alpine3.18 "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/alpine/3.18/8.1/Dockerfile) |
| [loeffelhardt/php:8.2-alpine3.19](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.2-alpine3.19) | 8.2.18 | Alpine 3.19 | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.2-alpine3.18.svg)](https://microbadger.com/images/loeffelhardt/php:8.2-alpine3.19 "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/alpine/3.19/8.2/Dockerfile) |
| [loeffelhardt/php:8.1-alpine3.19](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.1-alpine3.19) | 8.1.28 | Alpine 3.19 | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.1-alpine3.19.svg)](https://microbadger.com/images/loeffelhardt/php:8.1-alpine3.19 "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/alpine/3.19/8.1/Dockerfile) |
| [loeffelhardt/php:8.2-debian](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.2-debian) | 8.2.18 | Debian "bullseye" | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.2-debian.svg)](https://microbadger.com/images/loeffelhardt/php:8.2-debian "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/debian/bullseye/8.2/Dockerfile) |
| [loeffelhardt/php:8.1-debian](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.1-debian) | 8.1.28 | Debian "bullseye" | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.1-debian.svg)](https://microbadger.com/images/loeffelhardt/php:8.1-debian "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/debian/bullseye/8.1/Dockerfile) |
| [loeffelhardt/php:8.2-debian](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.2-debian) | 8.2.20 | Debian "bullseye" | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.2-debian.svg)](https://microbadger.com/images/loeffelhardt/php:8.2-debian "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/debian/bullseye/8.2/Dockerfile) |
| [loeffelhardt/php:8.1-debian](https://hub.docker.com/r/loeffelhardt/php/tags?name=8.1-debian) | 8.1.29 | Debian "bullseye" | [![](https://images.microbadger.com/badges/image/loeffelhardt/php:8.1-debian.svg)](https://microbadger.com/images/loeffelhardt/php:8.1-debian "Get your own image badge on microbadger.com") | [:link:](https://github.com/loeffelhardt/el-docker-php/blob/master/debian/bullseye/8.1/Dockerfile) |
## How to use

### Pull image
Expand Down Expand Up @@ -164,7 +167,7 @@ Installed extensions
Disabled extensions
====================
[ ] blackfire 1.87.1
[ ] newrelic 10.11.0.3
[ ] newrelic 10.22.0.12
[ ] pcov 1.0.11
[ ] tideways 5.5.14
[ ] xhprof 2.3.9
Expand All @@ -179,7 +182,7 @@ xdebug 3.2.2 stable
xhprof 2.3.9 stable
Composer
====================
Composer version 2.5.8 2023-06-09 17:13:21
Composer version 2.6.6
```
##### Run the following to get the report
```bash
Expand Down
2 changes: 1 addition & 1 deletion alpine/3.18/8.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARG TARGETPLATFORM
ARG COMPOSER_VERSION=2.7.1
ARG BLACKFIRE_VERSION=1.87.1
ARG BLACKFIRE_PHP_VERSION=81
ARG NEWRELIC_VERSION=10.16.0.5
ARG NEWRELIC_VERSION=10.22.0.12
ARG TIDEWAYS_VERSION=5.5.14
ARG TIDEWAYS_PHP_VERSION=8.1

Expand Down
4 changes: 2 additions & 2 deletions alpine/3.18/8.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# syntax = docker/dockerfile:1.0.2-experimental
ARG SPRYKER_PHP_VERSION=8.2.18
ARG SPRYKER_PHP_VERSION=8.2.19

FROM php:${SPRYKER_PHP_VERSION}-fpm-alpine3.18

ARG TARGETPLATFORM
ARG COMPOSER_VERSION=2.7.1
ARG BLACKFIRE_VERSION=1.87.1
ARG BLACKFIRE_PHP_VERSION=82
ARG NEWRELIC_VERSION=10.16.0.5
ARG NEWRELIC_VERSION=10.22.0.12
ARG TIDEWAYS_VERSION=5.5.14
ARG TIDEWAYS_PHP_VERSION=8.2

Expand Down
4 changes: 2 additions & 2 deletions alpine/3.19/8.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# syntax = docker/dockerfile:1.0.2-experimental
ARG SPRYKER_PHP_VERSION=8.1.28
ARG SPRYKER_PHP_VERSION=8.1.29

FROM php:${SPRYKER_PHP_VERSION}-fpm-alpine3.19

ARG TARGETPLATFORM
ARG COMPOSER_VERSION=2.7.1
ARG BLACKFIRE_VERSION=1.87.1
ARG BLACKFIRE_PHP_VERSION=81
ARG NEWRELIC_VERSION=10.16.0.5
ARG NEWRELIC_VERSION=10.22.0.12
ARG TIDEWAYS_VERSION=5.5.14
ARG TIDEWAYS_PHP_VERSION=8.1

Expand Down
4 changes: 2 additions & 2 deletions alpine/3.19/8.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# syntax = docker/dockerfile:1.0.2-experimental
ARG SPRYKER_PHP_VERSION=8.2.18
ARG SPRYKER_PHP_VERSION=8.2.20

FROM php:${SPRYKER_PHP_VERSION}-fpm-alpine3.19

ARG TARGETPLATFORM
ARG COMPOSER_VERSION=2.7.1
ARG BLACKFIRE_VERSION=1.87.1
ARG BLACKFIRE_PHP_VERSION=82
ARG NEWRELIC_VERSION=10.16.0.5
ARG NEWRELIC_VERSION=10.22.0.12
ARG TIDEWAYS_VERSION=5.5.14
ARG TIDEWAYS_PHP_VERSION=8.2

Expand Down
201 changes: 201 additions & 0 deletions alpine/3.20/8.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
# syntax = docker/dockerfile:1.0.2-experimental
ARG SPRYKER_PHP_VERSION=8.1.29

FROM php:${SPRYKER_PHP_VERSION}-fpm-alpine3.20

ARG TARGETPLATFORM
ARG COMPOSER_VERSION=2.6.6
ARG BLACKFIRE_VERSION=1.87.1
ARG BLACKFIRE_PHP_VERSION=81
ARG NEWRELIC_VERSION=10.22.0.12
ARG TIDEWAYS_VERSION=5.5.14
ARG TIDEWAYS_PHP_VERSION=8.1

ENV srcRoot /data

RUN mkdir -p ${srcRoot}

ARG PHP_RUN_DEPS="\
freetype \
gmp \
gnu-libiconv \
icu-libs \
libbz2 \
libc6-compat \
libjpeg-turbo \
libpng \
libwebp \
libxml2 \
libxpm \
libxslt \
libzip"


ARG PHP_BUILD_DEPS="\
autoconf \
bzip2-dev \
freetype-dev \
gmp-dev \
icu-dev \
icu-data-full \
libjpeg-turbo-dev \
libpng-dev \
libwebp-dev \
libxml2-dev \
libxpm-dev \
libxslt-dev \
libzip-dev \
postgresql-dev"

ARG PHP_EXTENSIONS="\
bcmath \
bz2 \
gd \
gmp \
intl \
mysqli \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
pgsql \
soap \
sockets \
xsl \
zip"

ARG PHP_PECL_EXTENSIONS="\
apcu \
redis"

ARG ADDITIONAL_PHP_PECL_EXTENSIONS="\
pcov \
xdebug \
xhprof"

ARG GRAPHVIZ_BUILD_DEPS="\
expat-dev"

ARG CFLAGS="-I/usr/src/php"
RUN apk update \
&& apk upgrade \
&& apk add --no-cache \
bash \
coreutils \
curl \
g++ \
git \
make \
mysql-client \
netcat-openbsd \
openssh \
postgresql-client \
procps \
python3 \
shadow \
unzip \
linux-headers \
${PHP_RUN_DEPS} \
&& \
apk add --no-cache --virtual .php-build-deps ${PHP_BUILD_DEPS} \
&& \
apk add --no-cache --virtual .graphviz-build-deps ${GRAPHVIZ_BUILD_DEPS} \
&& rm -rf /var/lib/apt/lists/ \
&& \
docker-php-ext-configure gd \
--disable-gd-jis-conv \
--with-freetype=/usr \
--with-jpeg=/usr \
--with-webp=/usr \
--with-xpm=/usr \
&& docker-php-ext-install -j5 ${PHP_EXTENSIONS} \
&& pecl install -o -f ${PHP_PECL_EXTENSIONS} ${ADDITIONAL_PHP_PECL_EXTENSIONS} \
&& rm -rf /tmp/pear \
&& docker-php-ext-enable ${PHP_EXTENSIONS} ${PHP_PECL_EXTENSIONS} \
&& apk del --no-cache .php-build-deps

# Related to https://github.com/docker-library/php/issues/240
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so

# Blackfire
ENV BLACKFIRE_AGENT_SOCKET=''
RUN architecture=$(case ${TARGETPLATFORM} in "linux/amd64") echo "amd64" ;; linux/arm64) echo "arm64" ;; *) echo "amd64" ;; esac) \
&& curl -A "Docker" -o /tmp/blackfire.so -D - -L -s https://packages.blackfire.io/binaries/blackfire-php/${BLACKFIRE_VERSION}/blackfire-php-alpine_${architecture}-php-${BLACKFIRE_PHP_VERSION}.so \
&& mv /tmp/blackfire.so $(php -r "echo ini_get ('extension_dir');")/blackfire.so

# New Relic
ENV NEWRELIC_ENABLED=0
ENV NEWRELIC_LICENSE=''
ENV NEWRELIC_APPNAME='Spryker'
ENV NEWRELIC_DISTRIBUTED_TRACING_ENABLED=0
ENV NEWRELIC_TRANSACTION_TRACER_ENABLED=0
ENV NEWRELIC_SPAN_EVENTS_ENABLED=0
ENV NEWRELIC_TRANSACTION_TRACER_THRESHOLD=0
ENV NEWRELIC_DISTRIBUTED_TRACING_EXCLUDE_NEWRELIC_HEADER=0

RUN bash -c 'curl -L "https://download.newrelic.com/php_agent/archive/${NEWRELIC_VERSION}/newrelic-php5-${NEWRELIC_VERSION}-linux-musl.tar.gz" | tar -C /tmp -zx \
&& export NR_INSTALL_USE_CP_NOT_LN=1 \
&& export NR_INSTALL_SILENT=1 \
&& /tmp/newrelic-php5-*/newrelic-install install \
&& rm -rf /tmp/newrelic-php5-* /tmp/nrinstall* \
&& /usr/bin/install -d -m 777 /var/log/newrelic/ \
&& rm /usr/local/etc/php/conf.d/newrelic.ini'

# Tideways
ENV TIDEWAYS_APIKEY=''
ENV TIDEWAYS_DAEMON_URI=''
ENV TIDEWAYS_CLI_ENABLED=0
RUN bash -c 'if [ "${TARGETPLATFORM}" == "linux/amd64" ]; then \
wget https://s3-eu-west-1.amazonaws.com/tideways/extension/${TIDEWAYS_VERSION}/tideways-php-${TIDEWAYS_VERSION}-alpine.tar.gz \
&& tar xvzf tideways-php-${TIDEWAYS_VERSION}-alpine.tar.gz \
&& cp ./build/dist/tideways-php-alpine-${TIDEWAYS_PHP_VERSION}.so $(php-config --extension-dir)/tideways.so; fi'

RUN bash -c 'if [ "${TARGETPLATFORM}" == "linux/arm64" ]; then \
wget https://s3-eu-west-1.amazonaws.com/tideways/extension/${TIDEWAYS_VERSION}/tideways-php-${TIDEWAYS_VERSION}-alpine-arm64.tar.gz \
&& tar xvzf tideways-php-${TIDEWAYS_VERSION}-alpine-arm64.tar.gz \
&& cp ./build/dist/tideways-php-alpine-${TIDEWAYS_PHP_VERSION}.so $(php-config --extension-dir)/tideways.so; fi'

# GraphViz 7.0.5
RUN cd /tmp && \
curl -L https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/7.0.5/graphviz-7.0.5.tar.gz | tar -zx && \
cd /tmp/graphviz-7.0.5 && \
./configure && \
make && \
make install && \
rm -rf /tmp/graphviz-7.0.5 && \
apk del --no-cache .graphviz-build-deps

# Opcache
RUN /usr/bin/install -d -m 777 /var/run/opcache

# Remove default FPM pool
RUN rm /usr/local/etc/php-fpm.d/www.conf && \
rm /usr/local/etc/php-fpm.d/docker.conf && \
rm /usr/local/etc/php-fpm.d/zz-docker.conf

# Add FPM configs
COPY context/php/php-fpm.d/worker.conf /usr/local/etc/php-fpm.d/worker.conf
COPY context/php/php-fpm.conf /usr/local/etc/php-fpm.conf

# Copy php.ini configuration
COPY context/php/php.ini /usr/local/etc/php/
COPY context/php/conf.d/90-opcache.ini /usr/local/etc/php/conf.d/
COPY context/php/conf.d/92-session.ini /usr/local/etc/php/conf.d/
COPY context/php/disabled /usr/local/etc/php/disabled

WORKDIR /data

# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer --version=${COMPOSER_VERSION}

# Create application user 'spryker'
RUN addgroup spryker && \
adduser -h /home/spryker -s /bin/sh -G www-data -D spryker && \
chown spryker:spryker ${srcRoot}

USER spryker
ENV COMPOSER_MEMORY_LIMIT=-1
RUN mkdir -p /home/spryker/.composer
RUN bash -c '[[ $COMPOSER_VERSION == "1"* ]] && composer global require hirak/prestissimo && rm -rf /home/spryker/.composer/cache || true'

USER root
Loading

0 comments on commit bc7b20f

Please sign in to comment.