1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-11 19:29:16 +08:00
Mainflux.mainflux/Dockerfile
Drasko DRASKOVIC 469b8f0c79 🐭 GO GO GO!
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2016-09-20 19:24:54 +02:00

31 lines
619 B
Docker

###
# Mainflux Dockerfile
###
FROM golang:alpine
MAINTAINER Mainflux
###
# Install
###
RUN apk update && apk add git && rm -rf /var/cache/apk/*
# Copy the local package files to the container's workspace.
ADD . /go/src/github.com/mainflux/mainflux-lite
RUN mkdir -p /config/lite
COPY config/config-docker.yml /config/lite/config.yml
# Get and install the dependencies
RUN go get github.com/mainflux/mainflux-lite
###
# Run main command from entrypoint and parameters in CMD[]
###
CMD ["/config/lite/config.yml"]
# Run mainflux command by default when the container starts.
ENTRYPOINT ["/go/bin/mainflux-lite"]