1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-04-27 13:48:49 +08:00
Mainflux.mainflux/Dockerfile
Drasko DRASKOVIC 3db4ab8440 Move Dockerfile to root folder
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2016-10-04 23:51:44 +02:00

31 lines
610 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
RUN mkdir -p /etc/mainflux
COPY config/config-docker.toml /etc/mainflux/config.toml
# Get and install the dependencies
RUN go get github.com/mainflux/mainflux
###
# Run main command from entrypoint and parameters in CMD[]
###
CMD ["/etc/mainflux/config.toml"]
# Run mainflux command by default when the container starts.
ENTRYPOINT ["/go/bin/mainflux"]