diff options
| author | Tulir Asokan <tulir@maunium.net> | 2024-06-19 11:47:35 +0300 |
|---|---|---|
| committer | Tulir Asokan <tulir@maunium.net> | 2024-06-19 11:51:29 +0300 |
| commit | 5da539ad8409b8902effb59a04d061516e236761 (patch) | |
| tree | 42d5a9a3d10f7affbe4efbdd8dd9f5998f353ba5 /giphyproxy/Dockerfile | |
| parent | 6332613e13dd6378b58f8cf557419c127bb2ab1d (diff) | |
Add MSC3916-compatible giphy media repo proxy
Diffstat (limited to 'giphyproxy/Dockerfile')
| -rw-r--r-- | giphyproxy/Dockerfile | 16 |
1 files changed, 16 insertions, 0 deletions
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"] |
