mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user