2020-10-25 10:03:34 -03:00
|
|
|
FROM golang:alpine AS build
|
|
|
|
|
|
|
|
WORKDIR /app/
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
WORKDIR /app/
|
|
|
|
|
|
|
|
COPY --from=build /app/main /app/http3-ytproxy
|
|
|
|
|
|
|
|
CMD ./http3-ytproxy
|