From 5da539ad8409b8902effb59a04d061516e236761 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 19 Jun 2024 11:47:35 +0300 Subject: Add MSC3916-compatible giphy media repo proxy --- giphyproxy/Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 giphyproxy/Dockerfile (limited to 'giphyproxy/Dockerfile') diff --git a/giphyproxy/Dockerfile b/giphyproxy/Dockerfile new file mode 100644 index 0000000..6088f99 --- /dev/null +++ b/giphyproxy/Dockerfile @@ -0,0 +1,16 @@ +FROM golang:1-alpine AS builder + +RUN apk add --no-cache ca-certificates +WORKDIR /build/giphyproxy +COPY . /build/giphyproxy +ENV CGO_ENABLED=0 +RUN go build -o /usr/bin/giphyproxy + +FROM scratch + +COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ +COPY --from=builder /usr/bin/giphyproxy /usr/bin/giphyproxy + +VOLUME /data +WORKDIR /data +CMD ["/usr/bin/giphyproxy"] -- cgit v1.2.3