Add a Dockerfile

This commit is contained in:
FireMasterK 2020-10-25 13:03:34 +00:00 committed by GitHub
parent f955cc04da
commit cf6ab21cd8
2 changed files with 20 additions and 0 deletions

5
.dockerignore Normal file
View file

@ -0,0 +1,5 @@
*.md
*.sock
.dockerignore
Dockerfile
LICENSE

15
Dockerfile Normal file
View file

@ -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