Skip to content

Commit

Permalink
Fix mono command (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Dec 9, 2019
1 parent 01357ac commit a1d8611
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Expand Up @@ -39,13 +39,15 @@ LABEL version="$VERSION" \

COPY LICENSE README.md /

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

RUN apk --update --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing add mono-dev \
&& apk --update --no-cache 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 \
&& apk del build-dependencies \
&& rm -rf /var/cache/apk/*

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

ADD entrypoint.sh /
ENTRYPOINT [ "/entrypoint.sh" ]
4 changes: 2 additions & 2 deletions entrypoint.sh
@@ -1,5 +1,5 @@
#!/bin/sh
set -e

ARGS=${INPUT_ARGS:-$@}
mono /opt/chocolatey/choco.exe "$ARGS" --allow-unofficial
ln -sf /opt opt
mono /opt/chocolatey/choco.exe ${INPUT_ARGS:-$@} --allow-unofficial --yes

0 comments on commit a1d8611

Please sign in to comment.