Skip to content

Commit

Permalink
Update "Dockerfile".
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Jun 9, 2018
1 parent cafe086 commit 09ed913
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV PACKAGE webhook
ENV VERSION 2.6.8

RUN apk add --update -t build-deps curl gcc libc-dev libgcc
RUN curl -L --silent -o ${PACKAGE}.tar.gz https://github.com/adnanh/${PACKAGE}/archive/${VERSION}.tar.gz && \
RUN curl -L -o ${PACKAGE}.tar.gz https://github.com/adnanh/${PACKAGE}/archive/${VERSION}.tar.gz && \
tar -xzf ${PACKAGE}.tar.gz --strip 1 && \
go get -d && \
go build -o /usr/local/bin/${PACKAGE} && \
Expand All @@ -15,6 +15,9 @@ RUN curl -L --silent -o ${PACKAGE}.tar.gz https://github.com/adnanh/${PACKAGE}/a
rm -rf /go

FROM alpine:3.7

RUN apk add --update bash git && \
rm -rf /var/cache/apk/*
COPY --from=0 /usr/local/bin/${PACKAGE} /usr/local/bin/${PACKAGE}

EXPOSE 9000
Expand Down

0 comments on commit 09ed913

Please sign in to comment.