build-specific DBF
This commit is contained in:
parent
110edfefc0
commit
ade19acee8
@ -4,14 +4,14 @@ volumes:
|
||||
|
||||
services:
|
||||
starbot:
|
||||
build: starbot
|
||||
build:
|
||||
context: starbot
|
||||
target: ptvp35
|
||||
volumes:
|
||||
- "./starbot/starbot:/app/starbot:ro"
|
||||
- "stardata:/app/data/:rw"
|
||||
env_file:
|
||||
- .secrets/starbot.env
|
||||
environment:
|
||||
- DBF_MODULE=starbot.db_ptvp35
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
|
@ -1,6 +1,14 @@
|
||||
FROM python:3.11
|
||||
FROM python:3.11 as base
|
||||
WORKDIR /app/
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip install -r requirements.txt
|
||||
COPY starbot starbot
|
||||
CMD ["python3", "-m", "starbot"]
|
||||
|
||||
FROM base as ptvp35
|
||||
RUN pip install git+https://gitea.parrrate.ru/PTV/ptvp35.git@f8ee5d20f4e159df2e20c40dbf3b81e925c2db36
|
||||
ENV DBF_MODULE=starbot.db_ptvp35
|
||||
|
||||
FROM base as sqlite
|
||||
RUN pip install aiosqlite~=0.19
|
||||
ENV DBF_MODULE=starbot.db_aiosqlite
|
||||
|
@ -1,4 +1,2 @@
|
||||
aiohttp>=3.7.4,<4
|
||||
aiosqlite~=0.19
|
||||
discord.py~=2.3.2
|
||||
ptvp35 @ git+https://gitea.parrrate.ru/PTV/ptvp35.git@f8ee5d20f4e159df2e20c40dbf3b81e925c2db36
|
||||
|
Loading…
Reference in New Issue
Block a user