mirror of
https://github.com/TeamPiped/http3-ytproxy.git
synced 2024-08-14 23:56:43 +00:00
Add support to convert jpeg images to webp on the fly.
This commit is contained in:
parent
1a64b5a446
commit
cae96be92a
4 changed files with 36 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue