mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 08:56:29 +00:00
26 lines
753 B
Docker
26 lines
753 B
Docker
|
# Docker image for the Drone build runner
|
||
|
#
|
||
|
# cd $GOPATH/src/github.com/drone/drone
|
||
|
# docker build --file=cmd/drone-build/Dockerfile.alpine --rm=true -t drone/drone-build .
|
||
|
|
||
|
FROM alpine:3.2
|
||
|
|
||
|
ENV GOROOT=/usr/lib/go \
|
||
|
GOPATH=/gopath \
|
||
|
GOBIN=/gopath/bin \
|
||
|
CGO_ENABLED=0 \
|
||
|
PATH=$PATH:$GOROOT/bin:$GOPATH/bin
|
||
|
|
||
|
WORKDIR /gopath/src/github.com/drone/drone
|
||
|
ADD . /gopath/src/github.com/drone/drone
|
||
|
|
||
|
RUN apk add -U go ca-certificates && \
|
||
|
cd cmd/drone-build && \
|
||
|
go build -a -tags netgo && \
|
||
|
apk del go && \
|
||
|
mv drone-build /bin/drone-build && \
|
||
|
rm -rf /gopath && \
|
||
|
rm -rf /var/cache/apk/*
|
||
|
|
||
|
ENTRYPOINT ["/bin/drone-build"]
|