Created
September 29, 2019 05:11
-
-
Save alfarioekaputra/f6c4c6dda167ebe4ef7986c7201d3a29 to your computer and use it in GitHub Desktop.
Dockerfile - phpdockerio php73- Caddy WebServer
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 phpdockerio/php73-fpm:latest | |
# Fix debconf warnings upon build | |
ARG DEBIAN_FRONTEND=noninteractive | |
# Install selected extensions and other stuff | |
RUN curl --silent --show-error --fail --location \ | |
--header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \ | |
"https://caddyserver.com/download/linux/amd64?plugins=http.expires,http.realip&license=personal" \ | |
| tar --no-same-owner -C /usr/bin/ -xz caddy \ | |
&& chmod 0755 /usr/bin/caddy \ | |
&& /usr/bin/caddy -version \ | |
&& apt-get update \ | |
&& apt-get -y --no-install-recommends install php-memcached php7.3-pgsql php7.3-mysql php-redis php-imagick php7.3-intl php7.3-xmlrpc php7.3-gd \ | |
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* | |
# Install git | |
RUN apt-get update \ | |
&& apt-get -y install git \ | |
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* | |
# Install nodejs | |
RUN apt-get update \ | |
&& curl -sL https://deb.nodesource.com/setup_12.x | bash \ | |
&& apt-get install -y nodejs \ | |
&& node -v \ | |
&& npm -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment