http3-ytproxy/Dockerfile
Fijxu 7ee6480b2f
All checks were successful
CI / build (push) Successful in 6m7s
v2
2024-10-29 15:57:08 -03:00

20 lines
340 B
Docker

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 \
go build -ldflags "-s -w"
FROM alpine:edge
RUN apk add --no-cache libwebp
WORKDIR /app/
COPY --from=build /app/http3-ytproxy /app/http3-ytproxy
CMD ./http3-ytproxy -l 0.0.0.0