diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..16ab99a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +*.md +*.sock +.dockerignore +Dockerfile +LICENSE diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ad16bf7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM golang:alpine AS build + +WORKDIR /app/ + +COPY . . + +RUN go build -ldflags "-s -w" main.go + +FROM alpine:edge + +WORKDIR /app/ + +COPY --from=build /app/main /app/http3-ytproxy + +CMD ./http3-ytproxy