In Nix (and, I’d assume, for Guix) you can go the other way around: https://mitchellh.com/writing/nix-with-dockerfiles.
As a side benefit, the generated docker image can be very tiny.
Yeah Guix has a Dockerfile export
Yeah Guix has a Dockerfile export