Skip to content

Commit 8651d6a

Browse files
author
Oleg Sucharevich
committed
update docker build flow
1 parent c62250a commit 8651d6a

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.dockerignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
FROM golang:latest as builder
1+
FROM golang:1.10-alpine3.8 as builder
2+
3+
# Add basic tools
4+
RUN apk add --no-cache --update curl bash make git
5+
26
RUN mkdir -p /go/src/github.com/codefresh-io/stevedore
37
WORKDIR /go/src/github.com/codefresh-io/stevedore
8+
9+
ENV GOPATH /go
410
COPY . .
11+
12+
# Build binary
513
RUN "./scripts/BUILD.sh"
614

715

@@ -10,6 +18,8 @@ FROM alpine:3.6
1018
RUN apk add --no-cache ca-certificates
1119

1220
COPY --from=builder /go/src/github.com/codefresh-io/stevedore/dist/bin/stevedore /usr/bin/stevedore
21+
22+
1323
ENV PATH $PATH:/usr/bin/stevedore
1424
ENTRYPOINT ["stevedore"]
1525

0 commit comments

Comments
 (0)