docker small adjustments (#17)
just some basic docker make file stuff to make it easier for local dev. Co-authored-by: gedw99 <gedw99@gmail.com> Reviewed-on: https://git.mills.io/prologic/tube/pulls/17 Co-authored-by: gerard webb <gedw99@noreply@mills.io> Co-committed-by: gerard webb <gedw99@noreply@mills.io>
This commit is contained in:
parent
acf8cbd82d
commit
012ae52fc7
3 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
4
Makefile
4
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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue