Skip to content

Commit 931a4a4

Browse files
author
Michael Recachinas
committed
Use abs path in ENTRYPOINT
1 parent fd04ff1 commit 931a4a4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
FROM golang:1.13.8-alpine3.11
2-
3-
RUN apk add --no-cache nodejs npm make git yarn
1+
# Build stage
2+
FROM golang:1.16-alpine3.13 as gobuilder
43

54
WORKDIR /go/src/app
65

7-
RUN go get github.com/go-bindata/go-bindata/...
6+
COPY . .
87

9-
RUN go get github.com/elazarl/go-bindata-assetfs/...
8+
RUN CGO_ENABLED=0 go build -a -ldflags '-w -extldflags "-static"' -mod vendor .
109

11-
COPY . .
10+
# Final Stage
11+
FROM busybox:1.33.1
1212

13-
RUN go get -d -v ./...
13+
WORKDIR /opt/sds
1414

15-
RUN rm -f bindata_assetfs.go && make release && go install -tags ui
15+
COPY --from=gobuilder /go/src/app/sigplot-data-service .
1616

1717
RUN mkdir logs
1818

19-
ENTRYPOINT [ "sigplot-data-service" ]
19+
ENTRYPOINT [ "/opt/sds/sigplot-data-service" ]

0 commit comments

Comments
 (0)