diff options
| author | 2022-09-18 02:07:12 +0400 | |
|---|---|---|
| committer | 2022-09-17 15:07:12 -0700 | |
| commit | 4dc9a952a71d03959e302434e8e9941e9bd3b577 (patch) | |
| tree | aabb1398f4648c0ee361468e84ef2fe3e720dd05 | |
| parent | Removed italics from the help command (#2272) (diff) | |
Use Python Poetry Base Action (#2277)
| -rw-r--r-- | Dockerfile | 24 | 
1 files changed, 3 insertions, 21 deletions
| diff --git a/Dockerfile b/Dockerfile index 65ca8ce51..205b66209 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,29 +1,11 @@ -FROM --platform=linux/amd64 python:3.10-slim +FROM --platform=linux/amd64 ghcr.io/chrislovering/python-poetry-base:3.10-slim  # Define Git SHA build argument for sentry  ARG git_sha="development" - -# POETRY_VIRTUALENVS_IN_PROJECT is required to ensure in-projects venvs mounted from the host in dev -# don't get prioritised by `poetry run` -ENV POETRY_VERSION=1.2.0 \ -  POETRY_HOME="/opt/poetry/home" \ -  POETRY_CACHE_DIR="/opt/poetry/cache" \ -  POETRY_NO_INTERACTION=1 \ -  POETRY_VIRTUALENVS_IN_PROJECT=false \ -  APP_DIR="/bot" \ -  GIT_SHA=$git_sha - -ENV PATH="$POETRY_HOME/bin:$PATH" - -RUN apt-get update \ -  && apt-get -y upgrade \ -  && apt-get install --no-install-recommends -y curl \ -  && apt-get clean && rm -rf /var/lib/apt/lists/* - -RUN curl -sSL https://install.python-poetry.org | python +ENV GIT_SHA=$git_sha  # Install project dependencies -WORKDIR $APP_DIR +WORKDIR /bot  COPY pyproject.toml poetry.lock ./  RUN poetry install --without dev | 
