Created
October 12, 2017 03:58
-
-
Save paulredmond/bd28128b8d6684c527e8ed70aedc8e93 to your computer and use it in GitHub Desktop.
Revisions
-
paulredmond created this gist
Oct 12, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ FROM php:7.1-fpm LABEL maintainer="Paul Redmond <paul@bitpress.io>" # Install application dependencies 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 \ && docker-php-ext-install mbstring pdo pdo_mysql COPY . /srv/app COPY docker/Caddyfile /etc/Caddyfile WORKDIR /srv/app/ RUN chown -R www-data:www-data /srv/app CMD ["/usr/bin/caddy", "--conf", "/etc/Caddyfile", "--log", "stdout"]