Open leonbeon opened 7 months ago
@leonbeon I'm not certain I understand the motivation for this docker file. I guess the goal is to have a server running, but why not to use default system tools for that (systemd for Linux, launchd for MacOS, probably something exists for Windows too)? Using Docker is a very narrow use-case.
Good point about the docs, it still refers old Swift base CLI, need to update.
I think the benefit of having a Dockerfile on the top level of the repo is that you can build directly from GitHub. But you're right, using Docker is just one of many ways to build this. Then again, why not also add a systemd config for easy deployment?
I think adding a Dockerfile would really benefit this project! Here is the one I currently use for a Raspberry Pi, based on Alpine Linux.
You could overwrite the download URL with
--build-arg
, currently it points to the latest build of the aarch64 version. Also, I'm not sure if logs would be redirected todocker logs
output, since it seems like thecook
binary doesn't output anything anyway?Also, I spent hours realising that the
--host
argument is missing. Maybe add that to the docs?