Skip to content

Commit 0f996f3

Browse files
authored
Dockerfile: build from local source code in build context instead of fetching it remotely. Related to #5. (#6)
1 parent 343870f commit 0f996f3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
FROM golang:1.7.3 as builder
22

3-
#COPY . $GOPATH/src/github.com/staaldraad/tcpprox/
4-
RUN go get github.com/staaldraad/tcpprox
3+
COPY . $GOPATH/src/github.com/staaldraad/tcpprox/
54
WORKDIR $GOPATH/src/github.com/staaldraad/tcpprox/
65

7-
#RUN go build -o /go/bin/tcpprox
86
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags="-w -s" -o /go/bin/tcpprox
97

108
FROM scratch

0 commit comments

Comments
 (0)