build_develop / build (push) Successful in 1m35s
Decided to just use poetry to just export requirements instead of building package.
19 lines
496 B
Docker
19 lines
496 B
Docker
FROM python:3.11.9-slim
|
|
|
|
# install dependencies
|
|
RUN apt-get update && apt-get -y upgrade && apt-get -y install git
|
|
|
|
WORKDIR /home
|
|
|
|
COPY config.py config.py
|
|
COPY main.py main.py
|
|
COPY utils.py utils.py
|
|
COPY pyproject.toml pyproject.toml
|
|
|
|
COPY classes classes/
|
|
COPY cogs cogs/
|
|
COPY database_setup database_setup/
|
|
|
|
RUN pip install --upgrade pip && pip install poetry && poetry export -f requirements.txt --output requirements.txt && pip install -r requirements.txt
|
|
|
|
CMD ["python3", "-u", "./main.py"] |