Skip to content

Instantly share code, notes, and snippets.

@hughshen
Created October 17, 2020 02:51
Show Gist options
  • Save hughshen/0838bede2254f8324475381e3b78c3c1 to your computer and use it in GitHub Desktop.
Save hughshen/0838bede2254f8324475381e3b78c3c1 to your computer and use it in GitHub Desktop.
FROM alpine:3.9
# trust this project public key to trust the packages.
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update add ca-certificates \
&& echo "https://dl.bintray.com/php-alpine/v3.9/php-7.3" >> /etc/apk/repositories \
&& apk --update add \
tzdata \
php \
php-fpm \
php-mbstring \
php-pdo \
php-pdo_mysql \
php-mysqli \
php-curl \
php-openssl \
php-gettext \
php-bcmath \
php-zip \
php-json \
php-soap \
php-zlib \
php-xml \
php-xmlreader \
php-dom \
php-ftp \
php-ctype \
php-gd \
php-intl \
php-session \
php-iconv \
php-exif \
php-sockets \
php-redis \
php-swoole \
php-opcache \
&& rm -rf /var/cache/apk/*
EXPOSE 9000
CMD ["/usr/sbin/php-fpm7", "-R", "--nodaemonize"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment