Add config.toml as a mapped file instead of copying

This should reduce the number of rebuilds that we have to do for a
simple configuration change

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2024-07-18 10:57:13 -07:00
parent 801439c9f1
commit f700c0f34c
2 changed files with 2 additions and 2 deletions

View File

@@ -6,5 +6,4 @@ RUN pip3 install pipenv
RUN apk add build-base libffi-dev RUN apk add build-base libffi-dev
COPY ./Pipfile ./Pipfile.lock /app/ COPY ./Pipfile ./Pipfile.lock /app/
RUN pipenv install RUN pipenv install
COPY ./config.toml /app/
CMD pipenv run python3 -m omnibot CMD pipenv run python3 -m omnibot

View File

@@ -6,4 +6,5 @@ services:
- "./omnibot:/app/omnibot" - "./omnibot:/app/omnibot"
- "./plugins:/app/plugins" - "./plugins:/app/plugins"
- "./data:/app/data" - "./data:/app/data"
- "./config.toml:/app/config.toml"
restart: unless-stopped restart: unless-stopped