a545ceaec9
* ci(choco): fix action Signed-off-by: hackercat <me@hackerc.at> * fix(editorconfig): force style for all files, fix typo Signed-off-by: hackercat <me@hackerc.at> * ci(choco): test choco action Signed-off-by: hackercat <me@hackerc.at> * fix(editorconfig): unformat Dockerfile/sh Signed-off-by: hackercat <me@hackerc.at>
20 lines
723 B
Docker
20 lines
723 B
Docker
FROM alpine:latest
|
|
|
|
ARG CHOCOVERSION=0.11.3
|
|
|
|
RUN apk add --no-cache bash ca-certificates git \
|
|
&& apk --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing add mono mono-dev \
|
|
&& cert-sync /etc/ssl/certs/ca-certificates.crt \
|
|
&& wget "https://github.com/chocolatey/choco/archive/${CHOCOVERSION}.tar.gz" -O- | tar -xzf - \
|
|
&& cd choco-"${CHOCOVERSION}" \
|
|
&& chmod +x build.sh zip.sh \
|
|
&& ./build.sh -v \
|
|
&& mv ./code_drop/chocolatey/console /opt/chocolatey \
|
|
&& mkdir -p /opt/chocolatey/lib \
|
|
&& rm -rf /choco-"${CHOCOVERSION}" \
|
|
&& apk del mono-dev \
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
ENV ChocolateyInstall=/opt/chocolatey
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
ENTRYPOINT ["/entrypoint.sh"]
|