You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
379 B

  1. FROM golang:1-alpine AS builder
  2. RUN apk add --no-cache ca-certificates
  3. WORKDIR /build/giphyproxy
  4. COPY . /build/giphyproxy
  5. ENV CGO_ENABLED=0
  6. RUN go build -o /usr/bin/giphyproxy
  7. FROM scratch
  8. COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
  9. COPY --from=builder /usr/bin/giphyproxy /usr/bin/giphyproxy
  10. VOLUME /data
  11. WORKDIR /data
  12. CMD ["/usr/bin/giphyproxy"]