Add a Dockerfile
This commit is contained in:
parent
f955cc04da
commit
cf6ab21cd8
2 changed files with 20 additions and 0 deletions
5
.dockerignore
Normal file
5
.dockerignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
*.md
|
||||
*.sock
|
||||
.dockerignore
|
||||
Dockerfile
|
||||
LICENSE
|
15
Dockerfile
Normal file
15
Dockerfile
Normal 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
|
Loading…
Add table
Reference in a new issue