|
@@ -13,13 +13,24 @@ Requires:
|
|
|
* python3
|
|
|
* pip
|
|
|
|
|
|
-### Steps
|
|
|
+### Steps with Docker
|
|
|
|
|
|
1. `git clone https://git.lattuga.net/ekardnam/mastodon-welcome-bot`
|
|
|
-2. `pip install -r requirements.txt` (you'll probably want to setup a [virtualenv](https://www.pythonforbeginners.com/basics/how-to-use-python-virtualenv) for this)
|
|
|
-3. `cp .env.dist .env`
|
|
|
+2. `cd mastodon-welcome-bot`
|
|
|
+3. `cp .env.dist .env`
|
|
|
4. Fill in the env vars as required in the `.env` file (see definitions below)
|
|
|
-5. Run the app with `python run.py`
|
|
|
+5. `docker build -t . mastodon-welcome-message`
|
|
|
+5. Run the app with `docker run -d mastodon-welcome-bot`
|
|
|
+
|
|
|
+### Steps without Docker
|
|
|
+1. `git clone https://git.lattuga.net/ekardnam/mastodon-welcome-bot`
|
|
|
+2. `cd mastodon-welcome-bot`
|
|
|
+3. `virtualenv .venv`
|
|
|
+4. `source .venv/bin/activate`
|
|
|
+5. `pip install -r requirements.txt`
|
|
|
+6. `cp .env.dist .env`
|
|
|
+7. Fill in the env vars as required in the `.env` file (see definitions below)
|
|
|
+8. `python3 run.py`
|
|
|
|
|
|
### Environment Variables
|
|
|
|