1
0
Fork 1
mirror of https://github.com/maunium/stickerpicker synced 2024-09-16 00:11:03 +00:00
stickerpicker/giphyproxy/Dockerfile
2024-06-19 11:51:29 +03:00

17 lines
379 B
Docker

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"]