Skip to content

Commit 8a3fe55

Browse files
Add Dockerfile
1 parent 5f8f6db commit 8a3fe55

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM golang:1.14-alpine
2+
3+
COPY . /go/src/github.com/github/freno
4+
WORKDIR /go/src/github.com/github/freno
5+
6+
RUN go build -ldflags '-w -s' -o freno cmd/freno/main.go
7+
8+
FROM alpine
9+
10+
COPY --from=0 /go/src/github.com/github/freno/freno /usr/local/bin/freno
11+
12+
USER nobody
13+
ENTRYPOINT ["freno"]

0 commit comments

Comments
 (0)