-
Notifications
You must be signed in to change notification settings - Fork 0
4. Docker
Gurdeep Singh (Guru) edited this page Jun 30, 2024
·
1 revision
You can run the application in docker as well with the following command:
docker run -it --volume=/var/tmp/hibp:/var/www/html/PHPPwnedPasswordsDownloader/data/ oyeaussie/phppwnedpasswordsdownloader
Note: The above command will map your systems /var/tmp/hibp
folder to /var/www/html/PHPPwnedPasswordsDownloader/data/
folder. So, when you will run the ./hibp download
command, it will download all hash files to your /var/tmp/hibp
directory. Change the folder names of the volume to whatever you want.
Note: Run git pull to update the code to latest version.
cd /var/www/html/PHPPwnedPasswordsDownloader/
git pull
I have also added the DockerFile in the docker folder, so you can build the image the way you want to.