mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-26 20:16:04 +01:00
checkup update
closes #414 Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
e1b48daaae
commit
ef3ead938e
|
@ -1,30 +1,20 @@
|
||||||
FROM alpine:latest
|
FROM golang:alpine as builder
|
||||||
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
||||||
|
|
||||||
|
RUN apk --no-cache add \
|
||||||
|
ca-certificates \
|
||||||
|
gcc \
|
||||||
|
git \
|
||||||
|
libc-dev
|
||||||
|
|
||||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
ENV GO15VENDOREXPERIMENT 1
|
|
||||||
|
|
||||||
RUN apk update && apk add \
|
RUN go get github.com/sourcegraph/checkup/cmd/checkup
|
||||||
ca-certificates \
|
|
||||||
&& rm -rf /var/cache/apk/*
|
|
||||||
|
|
||||||
RUN buildDeps=' \
|
FROM alpine:latest
|
||||||
go \
|
|
||||||
git \
|
|
||||||
gcc \
|
|
||||||
libc-dev \
|
|
||||||
libgcc \
|
|
||||||
' \
|
|
||||||
set -x \
|
|
||||||
&& apk update \
|
|
||||||
&& apk add --no-cache --repository https://dl-3.alpinelinux.org/alpine/edge/community $buildDeps \
|
|
||||||
&& go get github.com/sourcegraph/checkup/cmd/checkup \
|
|
||||||
&& cp /go/bin/checkup /usr/bin/checkup \
|
|
||||||
&& apk del $buildDeps \
|
|
||||||
&& rm -rf /var/cache/apk/* \
|
|
||||||
&& rm -rf /go \
|
|
||||||
&& echo "Build complete."
|
|
||||||
|
|
||||||
|
COPY --from=builder /go/bin/checkup /usr/bin/checkup
|
||||||
|
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
||||||
|
|
||||||
ENTRYPOINT [ "checkup" ]
|
ENTRYPOINT [ "checkup" ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user