wybiral / tube

Personal video streaming server.
MIT License
264 stars 76 forks source link

Add Docker support #28

Closed brownchow closed 3 years ago

brownchow commented 3 years ago

Hi wybiral! I saw your awesome project on GitHub, and works well. I want to add Docker support for this project, so I add Dockerfile and build an image on my Arch Linux machine, it works well. image

image

but I change a huge amount of files.

1 I make a new dir call config, and move config.json to this dir, so user can use custom config.json override default when using docker container with -v /path/to/your/own/config.json:/container/default/config.json

2 I remove vendor dir, when I clone this repo, execute go mod init go mod tidy, I can run go build -o tube . without error in project root directory. I'm a newbee in golang, correct me how can I build tube without remove vendor dir

brownchow commented 3 years ago

there is someting wrong with my go env variables, I will close this PullRequest