diff options
| author | 2022-11-02 02:07:29 -0700 | |
|---|---|---|
| committer | 2022-11-02 02:07:29 -0700 | |
| commit | 43a2acf5ee4eb354ce3dfaeef9504eee9b9b46b4 (patch) | |
| tree | cbdfeb08f8d582aa98acec6a529f0fa3dcd7933c /Dockerfile | |
| parent | Appeased the formatter (diff) | |
| parent | Merge pull request #1137 from DivyanshuBist/bug-issue1122-message-of-type-None (diff) | |
Merge branch 'main' into main
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 20 |
1 files changed, 5 insertions, 15 deletions
@@ -1,20 +1,9 @@ -FROM --platform=linux/amd64 python:3.9-slim - -# Set pip to have cleaner logs and no saved cache -ENV PIP_NO_CACHE_DIR=false \ - POETRY_VIRTUALENVS_CREATE=false - -# Install Poetry -RUN pip install --upgrade poetry +FROM --platform=linux/amd64 ghcr.io/chrislovering/python-poetry-base:3.10-slim +# Install dependencies WORKDIR /bot - -# Copy dependencies and lockfile -COPY pyproject.toml poetry.lock /bot/ - -# Install dependencies and lockfile, excluding development -# dependencies, -RUN poetry install --no-dev --no-interaction --no-ansi +COPY pyproject.toml poetry.lock ./ +RUN poetry install --without dev # Set SHA build argument ARG git_sha="development" @@ -24,4 +13,5 @@ ENV GIT_SHA=$git_sha COPY . . # Start the bot +ENTRYPOINT ["poetry", "run"] CMD ["python", "-m", "bot"] |