mirror of
https://github.com/TeamPiped/http3-ytproxy.git
synced 2024-12-06 19:16:28 +01:00
Add a Dockerfile
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
*.md
|
||||
*.sock
|
||||
.dockerignore
|
||||
Dockerfile
|
||||
LICENSE
|
||||
+15
@@ -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
|
||||
Reference in New Issue
Block a user