blob: 481c578469c991cfd8d8ad18900432b1f0d71e83 [file] [log] [blame]
FROM golang:latest as builder
WORKDIR /tmp/build
ADD . /tmp/build/
RUN go get ./... && \
CGO_ENABLED=0 GOOS=linux go build -o proxy proxy.go
FROM alpine:latest
LABEL org.opencontainers.image.source = "https://github.com/cirruslabs/http-cache-action/"
EXPOSE 12321
RUN apk --no-cache add ca-certificates
COPY --from=builder /tmp/build/proxy /app/
WORKDIR /app
CMD ["./proxy"]