We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9faef6 commit dfcb1efCopy full SHA for dfcb1ef
Dockerfile
@@ -1,8 +1,20 @@
1
+FROM golang:1.11.11-alpine3.8 as build
2
+
3
+WORKDIR /pikolo
4
5
+RUN apk add git gcc g++
6
7
+COPY go.mod .
8
+RUN go mod download
9
10
+COPY . .
11
+RUN env CGO_ENABLED=0 go build -ldflags="-s -w"
12
13
FROM alpine:3.8
14
15
RUN apk add --update ca-certificates
16
-COPY dist/pikolo_linux_386/pikolo /usr/local/bin/
17
+COPY --from=build /pikolo/pikolo /usr/local/bin
18
COPY VERSION /VERSION
19
20
LABEL io.codefresh.engine="true"
0 commit comments