From d760073ee7684a91df3dd334c5d70d4e1728476f Mon Sep 17 00:00:00 2001 From: Nicolas Carlier Date: Sun, 6 May 2018 11:00:27 +0200 Subject: [PATCH] fix(docker): add bash shell to the Docker image --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c13d23b..bb5b44d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,11 +35,14 @@ ARG ARTIFACT=webhookd RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 # Install deps -RUN apk add --no-cache git openssh-client jq +RUN apk add --no-cache git openssh-client jq bash + +# Create folder structure +RUN mkdir -p /var/opt/webhookd/scripts /var/opt/webhookd/work # Install binary and default scripts COPY --from=builder /go/src/$REPOSITORY/$ARTIFACT/release/$ARTIFACT-linux-amd64 /usr/local/bin/$ARTIFACT -COPY --from=builder /go/src/$REPOSITORY/$ARTIFACT/scripts /opt/scripts +COPY --from=builder /go/src/$REPOSITORY/$ARTIFACT/scripts /var/opt/webhookd/scripts # Define command CMD webhookd