Docker with perforce

hi,

I am creating docker image which will use source code from perforce repository of our own private . So i need to know how to get the source code in perforce server and build it in docker with docker file.
ex: my perforce server: xxx:1666
username: admin
password: admin

Please help me in this.

Thanks,
Gopi.