File tree Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 1
1
vendor /
2
2
.vs /
3
3
dump.rdb
4
+ /build /resec
Original file line number Diff line number Diff line change
1
+ ## 0.5.1 (January 16, 2019)
2
+
3
+ FIXES:
4
+
5
+ * Docker build
6
+
1
7
## 0.5.0 (September 16, 2018)
2
8
3
9
FEATURES:
Original file line number Diff line number Diff line change 1
- FROM golang:1.10-alpine
2
- WORKDIR /go/src/github.com/YotpoLtd/resec/
3
- COPY . /go/src/github.com/YotpoLtd/resec/
1
+ FROM golang:1.11.4-alpine AS builder
2
+
3
+ # Download and install the latest release of dep
4
+ ADD https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 /usr/bin/dep
5
+ RUN chmod +x /usr/bin/dep
6
+
7
+ RUN apk add --update git \
8
+ && rm -rf /var/cache/apk/*
9
+
10
+ WORKDIR $GOPATH/src/github.com/YotpoLtd/resec/
11
+ COPY Gopkg.toml Gopkg.lock ./
12
+ RUN dep ensure --vendor-only
13
+ COPY . ./
4
14
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o build/resec .
5
15
6
16
FROM alpine:latest
7
17
RUN apk --no-cache add ca-certificates
8
18
WORKDIR /root/
9
- COPY --from=0 /go/src/github.com/YotpoLtd/resec/build/resec .
19
+ COPY --from=builder /go/src/github.com/YotpoLtd/resec/build/resec .
10
20
CMD ["./resec" ]
You can’t perform that action at this time.
0 commit comments