Skip to content

Instantly share code, notes, and snippets.

@Cibernomadas
Created August 3, 2018 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cibernomadas/123cbb497c5f4da24ed8f9efd1e8cf94 to your computer and use it in GitHub Desktop.
Save Cibernomadas/123cbb497c5f4da24ed8f9efd1e8cf94 to your computer and use it in GitHub Desktop.
FROM resin/raspberrypi3-alpine-golang
RUN apk add -U --no-cache ca-certificates
RUN go get -u github.com/drone/drone-ui/dist && \
go get -u golang.org/x/net/context && \
go get -u golang.org/x/net/context/ctxhttp && \
go get -u github.com/golang/protobuf/proto && \
go get -u github.com/golang/protobuf/protoc-gen-go && \
go get github.com/drone/drone/cmd/... && \
cd /go/src/github.com/drone/drone
ENV DATABASE_DRIVER=sqlite3
ENV DATABASE_CONFIG=/var/lib/drone/drone.sqlite
ENV XDG_CACHE_HOME /var/lib/drone
RUN go build -o /usr/bin/drone-agent github.com/drone/drone/cmd/drone-agent
EXPOSE 3000
HEALTHCHECK CMD ["/usr/bin/drone-agent", "ping"]
ENTRYPOINT ["/usr/bin/drone-agent"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment