Skip to content

Commit b252558

Browse files
committed
fix caddy Dockerfile from previous commit.
1 parent 29d714a commit b252558

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

caddy/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,23 @@ FROM alpine:3.4
22

33
MAINTAINER 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

79
RUN apk update \
810
&& apk upgrade \
911
&& apk add tar curl
1012

1113
RUN 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

1920
EXPOSE 80 443 2015
2021

2122
WORKDIR /var/www/laravel/public
2223

23-
CMD ["caddy" "-conf", "/etc/Caddyfile"]
24+
CMD ["/usr/bin/caddy", "-conf", "/etc/Caddyfile"]

0 commit comments

Comments
 (0)