Skip to content

Commit

Permalink
update dockerfile to poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
zefanjajobse committed Dec 8, 2023
1 parent 8b873f9 commit b5ed667
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
FROM python:3
FROM python:3.12

WORKDIR /usr/src/app

COPY ./requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install poetry
COPY ./pyproject.toml /pyproject.toml
COPY ./poetry.lock /poetry.lock
RUN poetry config virtualenvs.create false

RUN poetry install --only main

COPY . .

HEALTHCHECK CMD discordhealthcheck || exit 1

CMD [ "python", "./bot.py" ]

0 comments on commit b5ed667

Please sign in to comment.