13 lines
369 B
Docker
13 lines
369 B
Docker
FROM golang:latest as build
|
|
|
|
WORKDIR /go/src/github.com/vbatts/acme-reverseproxy/
|
|
COPY . .
|
|
RUN go get -d -v ./...
|
|
RUN go install -v -tags netgo github.com/vbatts/acme-reverseproxy
|
|
|
|
FROM alpine:latest
|
|
RUN apk --no-cache add ca-certificates
|
|
VOLUME ["/tmp/acme-reverseproxy"]
|
|
COPY --from=build /go/bin/acme-reverseproxy /usr/bin/
|
|
ENTRYPOINT ["/usr/bin/acme-reverseproxy"]
|