mirror of
https://github.com/TeamPiped/http3-ytproxy.git
synced 2024-08-14 23:56:43 +00:00
16 lines
249 B
Docker
16 lines
249 B
Docker
FROM golang:alpine AS build
|
|
|
|
WORKDIR /app/
|
|
|
|
COPY . .
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
|
go build -ldflags "-s -w" main.go
|
|
|
|
FROM alpine:edge
|
|
|
|
WORKDIR /app/
|
|
|
|
COPY --from=build /app/main /app/http3-ytproxy
|
|
|
|
CMD ./http3-ytproxy
|