Skip to content

Commit

Permalink
Chocolatey 0.11.1 (#124)
Browse files Browse the repository at this point in the history
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max and crazy-max committed Sep 4, 2021
1 parent bdc1e49 commit 8bf78e4
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions image/Dockerfile
@@ -1,21 +1,15 @@
ARG CHOCOLATEY_VERSION="stable"

FROM mono:6.8 as builder

RUN rm /etc/apt/sources.list \
&& echo "deb http://archive.debian.org/debian wheezy main non-free" >> /etc/apt/sources.list \
&& echo 'Acquire::Check-Valid-Until "false";' >> /etc/apt/apt.conf.d/10-no-check-valid-until \
&& echo 'APT::Get::AllowUnauthenticated "true";' >> /etc/apt/apt.conf.d/10-allow-unauthenticated
ARG CHOCOLATEY_VERSION="0.11.1"

FROM mono:6.12 as builder
RUN apt-get update \
&& apt-get install -y \
gzip \
tar \
wget
wget \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ENV ChocolateyInstall="/opt/chocolatey"
ARG CHOCOLATEY_VERSION

WORKDIR /usr/local/src
RUN wget "https://github.com/chocolatey/choco/archive/${CHOCOLATEY_VERSION}.tar.gz" \
&& tar -xzf "${CHOCOLATEY_VERSION}.tar.gz" \
Expand All @@ -25,7 +19,7 @@ WORKDIR /usr/local/src/choco
RUN chmod +x build.sh zip.sh
RUN ./build.sh

FROM alpine:3.12
FROM alpine:3.14
LABEL maintainer="CrazyMax"

COPY --from=builder /usr/local/src/choco/build_output/chocolatey /opt/chocolatey
Expand Down

0 comments on commit 8bf78e4

Please sign in to comment.