Skip to content

Commit

Permalink
Initial basic Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
flaccid committed Apr 10, 2019
1 parent 9536493 commit 28a3250
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM golang as builder
COPY . /go/src/github.com/jpillora/go-tcp-proxy
WORKDIR /go/src/github.com/jpillora/go-tcp-proxy
RUN go get ./... && \
CGO_ENABLED=0 GOOS=linux go build -o tcp-proxy cmd/tcp-proxy/main.go

FROM scratch
COPY --from=builder /go/src/github.com/jpillora/go-tcp-proxy/tcp-proxy /tcp-proxy
WORKDIR /
ENTRYPOINT ["./tcp-proxy"]

0 comments on commit 28a3250

Please sign in to comment.