mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-26 13:48:53 +08:00

Setup top-level glide dependencies file. Migrated all of the manager service code into this repository. Fixed docker build procedure. Extracted executable to the top-level. Signed-off-by: Dejan Mijic <dejan@mainflux.com>
10 lines
308 B
Docker
10 lines
308 B
Docker
FROM golang:1.8-alpine AS builder
|
|
WORKDIR /go/src/github.com/mainflux/mainflux
|
|
COPY . .
|
|
RUN cd cmd/manager && CGO_ENABLED=0 GOOS=linux go build -ldflags "-s" -a -installsuffix cgo -o exe
|
|
|
|
FROM scratch
|
|
COPY --from=builder /go/src/github.com/mainflux/mainflux/cmd/manager/exe /
|
|
EXPOSE 8180
|
|
ENTRYPOINT ["/exe"]
|