How to mount docker tmpfs with exec,rw flags?

What command line options can be used for enabling a tmpfs (temporary file system) inside a docker container, that is rw (read/write) accessable and files on this fs (file system) are executable?

Example would be a shared memory tmpfs with 1G size, but standard flag is noexec
( shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1048576k) ) with:
docker -it –shm-size=1G alpine /bin/sh

Source: StackOverflow