-
-
Save dkarlovi/b1b09d0556f206dcc06241c3f7d6fc29 to your computer and use it in GitHub Desktop.
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
FROM alpine:3.6 | |
RUN addgroup -g 82 -S www-data && adduser -u 82 -H -D -S -G www-data www-data && \ | |
apk add --update --no-cache \ | |
fcgi \ | |
inotify-tools \ | |
make \ | |
php7 \ | |
php7-amqp \ | |
php7-apcu \ | |
php7-ctype \ | |
php7-curl \ | |
php7-dom \ | |
php7-exif \ | |
php7-fileinfo \ | |
php7-fpm \ | |
php7-imagick \ | |
php7-iconv \ | |
php7-intl \ | |
php7-json \ | |
php7-opcache \ | |
php7-openssl \ | |
php7-pcntl \ | |
php7-pdo_mysql \ | |
php7-posix \ | |
php7-redis \ | |
php7-simplexml \ | |
php7-tokenizer \ | |
php7-xdebug \ | |
php7-xml \ | |
tini | |
COPY vendor /app/vendor | |
COPY web /app/web | |
COPY var /app/var | |
COPY app /app/app | |
COPY bin /app/bin | |
COPY src /app/src | |
RUN chown -R www-data /app/var/cache /app/var/logs /app/var/sessions | |
COPY ./.infra/docker/php/php.ini ./.infra/docker/php/ext-* /etc/php7/conf.d/ | |
COPY ./.infra/docker/php/php-fpm.conf /etc/php7/php-fpm.d/www.conf | |
COPY ./.infra/docker/php/entrypoint.sh ./.infra/docker/php/docker-healthcheck /usr/local/bin/ | |
HEALTHCHECK CMD ["docker-healthcheck"] | |
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/entrypoint.sh", "/usr/sbin/php-fpm7", "--nodaemonize"] | |
WORKDIR /app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment