diff --git a/Dockerfile b/Dockerfile index a9e6353..1257ed1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ FROM golang:alpine RUN apk --no-cache -U add git build-base ffmpeg ffmpeg-dev -RUN go get github.com/mutschler/mt +RUN go install github.com/mutschler/mt@latest COPY --from=build /src/tube /tube diff --git a/Makefile b/Makefile index 7956306..5836337 100644 --- a/Makefile +++ b/Makefile @@ -23,8 +23,10 @@ build: clean install: build @go install -image: +docker-image: @docker build -t prologic/tube . +docker-run: + @docker run -p 8000:8000 -t prologic/tube . test: install @go test diff --git a/README.md b/README.md index 81c578f..533b028 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,11 @@ $ docker pull prologic/tube $ docker run -p 8000:8000 -v /path/to/data:/data ``` +or using makefile: + +``` make docker-run ``` + + Open http://DOCKER_MACHINE_IP:8000/ in your Browser! Where `DOCKER_MACHINE_IP` is the IP Address of your Docker Node.