diff --git a/.github/workflows/build-warehouse-image.yml b/.github/workflows/build-warehouse-image.yml index b7cf9df8a5..23cfe021e4 100644 --- a/.github/workflows/build-warehouse-image.yml +++ b/.github/workflows/build-warehouse-image.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '3.11' - - run: curl -sSL https://install.python-poetry.org | python - + - run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python - - run: cd warehouse && poetry install && poetry run mypy scripts compile: @@ -38,7 +38,7 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '3.11' - - run: curl -sSL https://install.python-poetry.org | python - + - run: curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python - - uses: 'google-github-actions/auth@v2' with: credentials_json: '${{ secrets.GCP_SA_KEY }}' diff --git a/warehouse/Dockerfile b/warehouse/Dockerfile index 9d8ccf9a15..850b552d09 100644 --- a/warehouse/Dockerfile +++ b/warehouse/Dockerfile @@ -1,6 +1,6 @@ -FROM --platform=linux/amd64 python:3.9-buster as build +FROM python:3.11-buster AS build -LABEL org.opencontainers.image.source https://github.com/cal-itp/data-infra +LABEL org.opencontainers.image.source=https://github.com/cal-itp/data-infra RUN apt-get update RUN apt-get install -y ca-certificates curl gnupg @@ -12,8 +12,9 @@ RUN apt-get update \ RUN npm install -g --unsafe-perm=true --allow-root netlify-cli -RUN curl -sSL https://install.python-poetry.org | python3 - +RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=2.0.1 python - ENV PATH="/root/.local/bin:${PATH}" +RUN poetry self add poetry-plugin-export@1.9.0 RUN mkdir /app WORKDIR /app