Open gwpl opened 8 months ago
Now that this project is built in Go, producing a Docker image for this is as simple as running kobuild
in the repo root. Doing so produces a statically-linked Go binary inside of a reasonably hardened Docker image.
Thank you! I didn't know that Go projects need just ko build
to make a docker image!
Is there any objection to this project having a Dockerfile
? I'm willing to do the work to make it happen.
Looking into this a bit, some changes are needed for this containerize properly. For example, during the build process, it needs to init the patterns, but --setup
wants to initialize the API keys. This is not appropriate during the build process. So we need a way to init the patterns without configuring the keys. I've created a new flag for that, but it's failing somewhere while creating the patterns.
That's just to say, I believe there's work to do to make containerizing this properly work correctly.
I've created a Dockerfile
for my own project; it's not perfect but it works.
You could modify it to have ARG
s, so that it can be used by other projects.
https://github.com/dennislwm/playscholar
What do you need?
Kind request for Dockerfile (ideally based on some clean or hardened or widely used docker image) to make it easy to build (with
docker build
or `docker buildx) and run and eventually compose (with other docker images via docker-compose/podman-compose).