From cd2896240462ad411b2a55c4280693acb696e89e Mon Sep 17 00:00:00 2001 From: casjay Date: Thu, 16 Mar 2023 15:17:47 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5660057..8c52c8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,12 +23,12 @@ ARG USER="root" ARG DISTRO_VERSION="${IMAGE_VERSION}" ARG BUILD_VERSION="${DISTRO_VERSION}" -FROM golang:latest AS caddy +FROM golang:alpine AS caddy ENV XDG_CONFIG_HOME /config ENV XDG_DATA_HOME /data RUN set -ex \ - apt update && apt install -yy -q jq curl libcap ; \ + apk -U upgrade && apk add --no-cache jq curl libcap ; \ export version=$(curl -q -LSsf "https://api.github.com/repos/caddyserver/caddy/releases/latest" | jq -r .tag_name | grep '^'); \ echo ">>>>>>>>>>>>>>> ${version} ###############" ; \ go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest || exit 10 ; \