I know that you can copy a file from host to a running Docker container using docker cp, but in my case I want to copy it just before starting the docker container.
docker cp
you can do something like this:
docker create mycon docker cp /myfiles/file mycon:/path/file docker start mycon