Add a Dockerfile
This commit is contained in:
parent
f955cc04da
commit
cf6ab21cd8
|
@ -0,0 +1,5 @@
|
|||
*.md
|
||||
*.sock
|
||||
.dockerignore
|
||||
Dockerfile
|
||||
LICENSE
|
|
@ -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
|
Loading…
Reference in New Issue