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 fd04ff1 commit 931a4a4Copy full SHA for 931a4a4
Dockerfile
@@ -1,19 +1,19 @@
1
-FROM golang:1.13.8-alpine3.11
2
-
3
-RUN apk add --no-cache nodejs npm make git yarn
+# Build stage
+FROM golang:1.16-alpine3.13 as gobuilder
4
5
WORKDIR /go/src/app
6
7
-RUN go get github.com/go-bindata/go-bindata/...
+COPY . .
8
9
-RUN go get github.com/elazarl/go-bindata-assetfs/...
+RUN CGO_ENABLED=0 go build -a -ldflags '-w -extldflags "-static"' -mod vendor .
10
11
-COPY . .
+# Final Stage
+FROM busybox:1.33.1
12
13
-RUN go get -d -v ./...
+WORKDIR /opt/sds
14
15
-RUN rm -f bindata_assetfs.go && make release && go install -tags ui
+COPY --from=gobuilder /go/src/app/sigplot-data-service .
16
17
RUN mkdir logs
18
19
-ENTRYPOINT [ "sigplot-data-service" ]
+ENTRYPOINT [ "/opt/sds/sigplot-data-service" ]
0 commit comments