File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,22 +2,23 @@ FROM alpine:3.4
22
33MAINTAINER Eric Pfeiffer <computerfr33k@users.noreply.github.com>
44
5- LABEL caddy_version="0.9.1" architecture="amd64"
5+ ENV caddy_version=0.9.1
6+
7+ LABEL caddy_version="$caddy_version" architecture="amd64"
68
79RUN apk update \
810 && apk upgrade \
911 && apk add tar curl
1012
1113RUN curl --silent --show-error --fail --location \
1214 --header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \
13- "https://github.com/mholt/caddy/releases/download/v0.9.1 /caddy_linux_amd64.tar.gz" \
15+ "https://github.com/mholt/caddy/releases/download/v$caddy_version /caddy_linux_amd64.tar.gz" \
1416 | tar --no-same-owner -C /usr/bin/ -xz caddy_linux_amd64 \
1517 && mv /usr/bin/caddy_linux_amd64 /usr/bin/caddy \
16- && chmod 0755 /usr/bin/caddy \
17- && /usr/bin/caddy -version
18+ && chmod 0755 /usr/bin/caddy
1819
1920EXPOSE 80 443 2015
2021
2122WORKDIR /var/www/laravel/public
2223
23- CMD ["caddy" "-conf" , "/etc/Caddyfile" ]
24+ CMD ["/usr/bin/ caddy" , "-conf" , "/etc/Caddyfile" ]
You can’t perform that action at this time.
0 commit comments