2020-03-09 19:49:55 -05:00
|
|
|
FROM alpine:latest
|
|
|
|
|
2021-11-24 11:27:38 -06:00
|
|
|
ARG CHOCOVERSION=0.11.3
|
2020-03-09 19:49:55 -05:00
|
|
|
|
2021-11-24 11:27:38 -06:00
|
|
|
RUN apk add --no-cache bash ca-certificates \
|
|
|
|
&& apk --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing add mono-dev \
|
2020-03-09 19:49:55 -05:00
|
|
|
&& cert-sync /etc/ssl/certs/ca-certificates.crt \
|
2021-11-24 11:27:38 -06:00
|
|
|
&& wget "https://github.com/chocolatey/choco/archive/${CHOCOVERSION}.tar.gz" \
|
|
|
|
&& tar -xzf "${CHOCOVERSION}.tar.gz" \
|
|
|
|
&& mv "choco-${CHOCOVERSION}" /opt/chocolatey \
|
|
|
|
&& chmod +x build.sh zip.sh \
|
|
|
|
&& ./build.sh -v \
|
2020-03-09 19:49:55 -05:00
|
|
|
&& ln -sf /opt /opt/chocolatey/opt \
|
|
|
|
&& mkdir -p /opt/chocolatey/lib \
|
2021-11-24 11:27:38 -06:00
|
|
|
&& apk del ca-certificates \
|
2020-03-09 19:49:55 -05:00
|
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|