mirror of https://codeberg.org/soteria/sox.git
build: add and update docker with compose
This commit is contained in:
parent
7f5a534822
commit
2b924b5d25
|
|
@ -0,0 +1,5 @@
|
|||
*
|
||||
!src*
|
||||
!poetry*
|
||||
!pyproject.toml
|
||||
!.env
|
||||
|
|
@ -1,9 +1,13 @@
|
|||
FROM python:3.11-bookworm
|
||||
FROM python:3.14-slim-trixie
|
||||
|
||||
WORKDIR /sox
|
||||
|
||||
RUN pip install poetry
|
||||
|
||||
COPY . .
|
||||
COPY pyproject.toml poetry.lock ./
|
||||
|
||||
RUN poetry install --without=dev
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD ["poetry", "run", "python", "-m", "src"]
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
services:
|
||||
sox:
|
||||
container_name: sox
|
||||
pull_policy: build
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
TOKEN: ${TOKEN?Bot token not provided}
|
||||
FUN_GUILD: ${FUN_GUILD?Main guild ID not provided}
|
||||
WELCOME_CHANNEL: $WELCOME_CHANNEL
|
||||
MEMBER_ROLE: $MEMBER_ROLE
|
||||
Loading…
Reference in New Issue