http3-ytproxy/Dockerfile

21 lines
339 B
Text
Raw Normal View History

2020-10-25 10:03:34 -03:00
FROM golang:alpine AS build
WORKDIR /app/
RUN apk add --no-cache build-base libwebp-dev
2020-10-25 10:03:34 -03:00
COPY . .
2022-03-04 16:31:27 -03:00
RUN --mount=type=cache,target=/root/.cache/go-build \
go build -ldflags "-s -w" main.go
2020-10-25 10:03:34 -03:00
FROM alpine:edge
RUN apk add --no-cache libwebp
2020-10-25 10:03:34 -03:00
WORKDIR /app/
COPY --from=build /app/main /app/http3-ytproxy
2024-10-08 23:14:29 -03:00
CMD ./http3-ytproxy -l 0.0.0.0