cloudflare/pint
Publicmirrored from https://github.com/cloudflare/pintAvailable
Dockerfile
12lines · modecode
| 1 | FROM golang:1.17.3-alpine |
| 2 | COPY . /src |
| 3 | WORKDIR /src |
| 4 | RUN go build ./cmd/pint |
| 5 | |
| 6 | FROM debian:stable |
| 7 | RUN apt-get update --yes && \ |
| 8 | apt-get install --no-install-recommends --yes git ca-certificates && \ |
| 9 | rm -rf /var/lib/apt/lists/* |
| 10 | COPY --from=0 /src/pint /usr/local/bin/pint |
| 11 | WORKDIR /code |
| 12 | CMD ["/usr/local/bin/pint"] |
| 13 | |