mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 05:41:12 +00:00
26 lines
1.1 KiB
Docker
26 lines
1.1 KiB
Docker
# Docker image for the Drone build runner
|
|
#
|
|
# docker build --file=Dockerfile.alpine --rm=true -t drone/drone-alpine .
|
|
|
|
FROM alpine:3.2
|
|
|
|
EXPOSE 8080
|
|
|
|
ENV GOROOT=/usr/lib/go \
|
|
GOPATH=/gopath \
|
|
GOBIN=/gopath/bin \
|
|
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 libc-dev gcc git sqlite-libs && \
|
|
go get github.com/jteeuwen/go-bindata/... && \
|
|
/gopath/bin/go-bindata -o="cmd/drone-server/drone_bindata.go" cmd/drone-server/static/... && \
|
|
go run make.go build && \
|
|
apk del git go gcc libc-dev && \
|
|
mv bin/drone /bin/drone && \
|
|
rm -rf /gopath && \
|
|
rm -rf /var/cache/apk/*
|
|
|
|
ENTRYPOINT ["/bin/drone"]
|