From 6c3efe2c23f448bd19b97448e8a5cb910581c89b Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 31 Aug 2023 11:31:33 +0200 Subject: [PATCH] image: update to v2.2.2 and dockerfile optim --- image/Dockerfile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/image/Dockerfile b/image/Dockerfile index 99f6bff..f556f47 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -1,17 +1,13 @@ # syntax=docker/dockerfile:1 -ARG CHOCOLATEY_VERSION="2.1.0" +ARG CHOCOLATEY_VERSION="2.2.2" ARG ALPINE_VERSION="3.17" - - FROM alpine:${ALPINE_VERSION} - WORKDIR /opt/chocolatey - -RUN apk add --no-cache curl -RUN apk --update --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing add mono-dev \ - && apk --update --no-cache add -t build-dependencies ca-certificates \ +RUN apk --update --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing add mono-dev \ + && apk add --no-cache curl \ + && apk add -t build-dependencies ca-certificates \ && cert-sync /etc/ssl/certs/ca-certificates.crt \ && ln -sf /opt /opt/chocolatey/opt \ && mkdir -p /opt/chocolatey/lib \ @@ -19,7 +15,6 @@ RUN apk --update --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/e && rm -rf /var/cache/apk/* ARG CHOCOLATEY_VERSION - RUN curl -sSL "https://github.com/chocolatey/choco/releases/download/${CHOCOLATEY_VERSION}/chocolatey.v${CHOCOLATEY_VERSION}.tar.gz" | tar xz COPY entrypoint.sh /