- memeGenerator project for wwwjs course on AGH-UST
-
git clone https://github.com/mrospond/memeGen.git
-
run
. run.sh
-
or alternatively:
sudo apt install -y python3-venv
python3 -m venv /path/to/venv
source /path/to/venv/activate
pip3 install -r requirements.txt
export FLASK_APP=app.py
export FLASK_DEBUG=1
python3 -m flask run (OR flask run)
-
to install new modules use
pip3 install <newModule>
then to save the installed dependencies run (make sure you're using a virtual environment)
pip3 freeze > requirements.txt
-
build a docker image:
docker build -t memegen .
-
run the container:
docker run -d -p 5000:5000 --name memegen-container memegen
-
enable auto restart:
docker update --restart on-failure memegen-container