-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NOISSUE - add dockerfile and change makefile (#9)
* add dockerfile Signed-off-by: Mirko Teodorovic <[email protected]> * Update dockerfile Signed-off-by: Mirko Teodorovic <[email protected]> * add makefile Signed-off-by: Mirko Teodorovic <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM golang:1.13-alpine AS builder | ||
ARG SVC | ||
ARG GOARCH | ||
ARG GOARM | ||
|
||
WORKDIR /go/src/github.com/mainflux/agent | ||
COPY . . | ||
RUN apk update \ | ||
&& apk add make\ | ||
&& make $SVC \ | ||
&& mv build/mainflux-$SVC /exe | ||
|
||
FROM scratch | ||
COPY --from=builder /exe / | ||
ENTRYPOINT ["/exe"] |