Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
Add a Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMasterK authored Oct 25, 2020
1 parent f955cc0 commit cf6ab21
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.md
*.sock
.dockerignore
Dockerfile
LICENSE
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cf6ab21

Please sign in to comment.