If you have made changes to the ACI container's filesystem which you want to persist in a new image, then, I'm afraid, without access to the underlying infrastructure hosting the container runtime, you shall not be able to perform a docker commit
or similar operation to build an image from a running container.
At the time of writing, since Azure Container Groups are Container-as-a-Service offering, Azure does not allow customers access to the underlying infrastructure that support them.
Instead you can write your own Dockerfile [How-to] with base image as atmoz/sftp:latest
and adding additional layers for the desired modifications. You can refer to atmoz/sftp on Docker Hub for usage and guidelines.