/autowebserver

Primary LanguagePythonMIT LicenseMIT

Automatically create a docker container from your existing website with SSL!

Step 0:

Make sure you have docker and python installed.

Step 1:

Clone this repo.

git clone https://github.com/Elod044/autowebserver/

Step 2:

Install the required packages!

pip install requirements.txt

Step 3:

Put all of your html files inside the /html folder, and put your SSL certificate in the /ssl folder. If you don't have any the script will auto generate one for you!

Step 4:

Run main.py with your desired flags!

python main.py -name test

Optional flags:

  • -autostart, after the image was created it starts a container with it
  • -export, after the image was created it exports the image to the main directory
  • -noclean, after the image was created it doesn't clean up the temporary files
python main.py -name test -autostart -export -noclean