diff --git a/Dockerfile b/Dockerfile index 3ba990573..79d8d8eea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,8 @@ RUN mkdir -p /tmp/ && \ # clean up the container "layer", after we are done rm /tmp/chromedriver.zip +ENV GOOGLE_CHROME_DRIVER /usr/bin/chromedriver +ENV GOOGLE_CHROME_BIN /usr/bin/google-chrome-stable # copy the dependencies file to the working directory COPY requirements.txt . diff --git a/README.md b/README.md index 6a1d71c7f..1bfaa43c3 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,20 @@ async def testing(message: Message): * **[More Detailed Guide](https://docs.google.com/document/d/15uoiOn2NkN518MMkx9h5UaMEWMp8aNZqJocXvS0uI6E)** 📝 -> TODO: add Docker Support. +### Run on Docker 🐳 + +1. Install Docker ( [Guide](https://docs.docker.com/engine/install/ubuntu/) ) +2. Clone the repo + `git clone https://github.com/UsergeTeam/Userge.git` +3. `cd Userge` +4. Create the docker image + `docker build -t userge .` +5. `cd ..` +6. `wget https://raw.githubusercontent.com/UsergeTeam/Userge/alpha/config.env.sample -O config.env` +7. Edit the file with your text editor + `vi config.env` +8. Finally run the container + `docker run -dv "$(pwd)/config.env:/app/config.env" userge` ### Video Tutorial 🎥