Skip to content

Instantly share code, notes, and snippets.

View albertyw's full-sized avatar
🦫

Albert Wang albertyw

🦫
View GitHub Profile
@albertyw
albertyw / Dockerfile-drone-nolimit
Last active February 7, 2022 02:30 — forked from mvdan/Dockerfile-drone-nolimit
Dockerfile to build Drone CI as a standalone server with its nolimit flag - https://hub.docker.com/r/mvdan/drone-nolimit
FROM golang:1.14.4 AS builder
RUN apt-get update && apt-get install -y ca-certificates
RUN git clone -b v2.9.1 --depth=1 https://github.com/drone/drone
RUN cd drone && go install -trimpath -ldflags='-w -s' -tags nolimit ./cmd/drone-server
FROM debian:buster-slim
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/