http3-ytproxy/Dockerfile
Fijxu cc63b84a55
All checks were successful
CI / build (push) Successful in 6m1s
fixup! Add version key to /stats and more arguments
2024-10-29 20:12:23 -03:00

21 lines
437 B
Docker

FROM golang:alpine AS build
WORKDIR /app/
RUN apk add --no-cache build-base libwebp-dev git
COPY .git .git
COPY . .
RUN --mount=type=cache,target=/root/.cache/go-build \
go build -ldflags "-s -w -X 'main.version=$(date '+%Y-%m-%d')-$(git rev-list --abbrev-commit -1 HEAD)'"
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