Extract tar.gz files on different path

Hi
Here is my current Dockerfile directory:

config
app
keys
Dockerfile

Is it possible to compress all files into the single tar.gz and in docker file define which file must extract where?

Expected directory:

allconfigs.tar.gz
Dockerfile

Expected docker file something like this:

config/allconfigs.tar.gz /opt/app/config/
app/allconfigs.tar.gz /opt/app/bin/
keys/allconfigs.tar.gz /opt/keys/

Any idea?
Thanks