Add support to convert jpeg images to webp on the fly.

This commit is contained in:
Kavin 2022-06-03 03:33:51 +01:00
parent 1a64b5a446
commit cae96be92a
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD
4 changed files with 36 additions and 3 deletions

View file

@ -2,6 +2,8 @@ FROM golang:alpine AS build
WORKDIR /app/
RUN apk add --no-cache build-base libwebp-dev
COPY . .
RUN --mount=type=cache,target=/root/.cache/go-build \
@ -9,6 +11,8 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
FROM alpine:edge
RUN apk add --no-cache libwebp
WORKDIR /app/
COPY --from=build /app/main /app/http3-ytproxy