diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e48473e..016225b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,14 +17,9 @@ jobs: test: runs-on: ubuntu-latest container: - image: python:3.9-slim + image: cimg/python:3.9 steps: - uses: actions/checkout@v4 - - name: Install dependencies - run: | - apt-get update && apt-get install -y curl && \ - curl -sSL https://install.python-poetry.org | python3 - && \ - ln -s /github/home/.local/bin/poetry /usr/local/bin/poetry - name: Configure Poetry run: poetry config virtualenvs.create false && poetry install - name: Run tests diff --git a/Dockerfile b/Dockerfile index 6f83206..998b1d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,4 @@ -FROM python:3.9-slim - -# Install Poetry -RUN apt-get update && apt-get install -y curl && \ - curl -sSL https://install.python-poetry.org | python3 - && \ - ln -s /root/.local/bin/poetry /usr/local/bin/poetry +FROM cimg/python:3.9 # Set working directory WORKDIR /app