-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (54 loc) · 2.43 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM uqlibrary/alpine:3.12.3
ENV COMPOSER_VERSION=2.0.9
ENV NEWRELIC_VERSION=9.16.0.295
ENV NR_INSTALL_SILENT=1
ENV NR_INSTALL_PHPLIST=/usr/bin
ENV BUILD_DEPS file re2c autoconf make g++ gcc groff php7-dev libmemcached-dev cyrus-sasl-dev zlib-dev musl pcre-dev
COPY ./fs/docker-entrypoint.sh /usr/sbin/docker-entrypoint.sh
RUN apk upgrade --update --no-cache && \
apk add --update --no-cache \
ca-certificates \
curl \
bash \
git sqlite mysql-client libmemcached
RUN apk add --update --no-cache \
php7-imap php7-mysqlnd php7-mbstring \
php7-session php7-mcrypt php7-soap php7-openssl php7-gmp php7-pdo_odbc php7-json php7-dom php7-pdo php7-zip \
php7-mysqli php7-sqlite3 php7-pdo_pgsql php7-bcmath php7-gd php7-odbc php7-pdo_mysql php7-pdo_sqlite \
php7-gettext php7-xmlreader php7-xmlwriter php7-xmlrpc php7-xml php7-simplexml php7-bz2 php7-iconv \
php7-pdo_dblib php7-curl php7-ctype php7-pcntl php7-posix php7-phar php7-opcache php7-mbstring php7-zlib \
php7-fileinfo php7-tokenizer php7-sockets php7-phar php7-intl php7-pear php7-ldap php7-phpdbg php7-fpm php7 \
#
# Add Postgresql Client
&& apk add --update --no-cache postgresql-client \
#
# Add media handling tools
&& apk add --update --no-cache exiftool mediainfo \
#
# Install XDebug, igbinary and memcached via PECL
&& apk add --update --no-cache php7-pecl-xdebug php7-pecl-igbinary php7-pecl-memcached \
#
# Build deps
&& apk add --no-cache --virtual .build-deps $BUILD_DEPS \
#
# Composer 2.x
&& curl -sS https://getcomposer.org/installer | php7 -- --install-dir=/usr/bin --filename=composer --version=${COMPOSER_VERSION} \
#
# NewRelic (disabled by default)
#&& mkdir -p /opt && cd /opt \
#&& wget -q https://download.newrelic.com/php_agent/archive/${NEWRELIC_VERSION}/newrelic-php5-${NEWRELIC_VERSION}-linux-musl.tar.gz \
#&& tar -zxf newrelic-php5-${NEWRELIC_VERSION}-linux-musl.tar.gz \
#&& rm -f newrelic-php5-${NEWRELIC_VERSION}-linux-musl.tar.gz \
#&& ./newrelic-php5-${NEWRELIC_VERSION}-linux-musl/newrelic-install install \
#&& mv /etc/php7/conf.d/newrelic.ini /etc/newrelic.ini \
#
# Remove build deps
&& rm -rf /var/cache/apk/* \
&& apk del --purge .build-deps \
#
# Make scripts executable
&& chmod +x /usr/sbin/docker-entrypoint.sh
ADD fs /
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 9000
WORKDIR /app