I've developed a bit on traefik source and now I want my image of traefik. There are currently 3 dockerfiles in the root:
exp.Dockerfile. (There's also one in the webui folder)
What I can't seem to achieve is that I can't make a final docker image! I tried
make binary but that doesn't create docker image.
In fact, I don't get what
build.Dockerfile does. It just installs dependencies and then copies the whole working directory to the image, but no output, no go building, no binary file, nothing!
The docker just finishes its work, then the
scripts/make.sh generate binary will run and that alone builds the final binary to
build.Dockerfile doesn't make any sense to me!
The second problem is that I can't build its dashboard to be inside of that docker container and with what config can I bring that up. The
Dockerfile in root folder just copies traefik binary and the
Dockerfile in webui just creates some files in
static folder, but these two doesn't seem to be connected, like the official traefik image.
(By the way,
exp.Dockerfile is also ambiguous to me!)
I'd be glad if anyone could help me with a complete walkthrough on how to build our own version of traefik, dockerize it (both development and production, so that it's usable in CI/CD in staging and production environment), and put webui in it (and how to access this through traefik).