Add oasst-shared folder to discord-bot container (#241)

* Add oasst-shared folder to discord-bot container

- Container was missing oasst-shared folder, thus was failing, due to missing package error.
- Add bash code block to README.MD (Co-authored-by: Vladyslav <v.bukhantsov@dexilon.io>)
This commit is contained in:
onegunsamurai
2023-01-01 17:57:45 +00:00
committed by GitHub
parent ce1317d9f5
commit aa2d426bbc
2 changed files with 12 additions and 4 deletions
+9 -1
View File
@@ -12,9 +12,17 @@ If you are unfamiliar with `hikari`, `lightbulb`, or `miru`, please refer to the
### Setup
To run the bot
To run the bot:
Install dependency module `oasst-shared`
```bash
cd oasst-shared
pip install -e .
```
```bash
cd ../discord-bot
cp .env.example .env
python -V # 3.10
+3 -3
View File
@@ -1,7 +1,7 @@
FROM python:3.10-slim-bullseye
RUN mkdir /app
COPY ./discord-bot/requirements.txt /requirements.txt
RUN pip install -r requirements.txt
WORKDIR /app
COPY ./discord-bot /app
CMD ["python", "bot.py"]
COPY ./oasst-shared/oasst_shared /app/oasst_shared
RUN pip install -r requirements.txt
CMD ["python","-m","bot"]