Skip to content

Commit

Permalink
Pin the Docker image version & upgrade Poetry (#296)
Browse files Browse the repository at this point in the history
* Pin the Docker image version & upgrade Poetry

* Add a docker build step to CI to make sure this keeps working

* Checkout the code so we have something to build
  • Loading branch information
tarkatronic authored Dec 9, 2021
1 parent 53c2d1e commit de94f6d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,16 @@ jobs:
- name: Run ${{ matrix.toxenv }}
run: |
tox -vv -e ${{ matrix.toxenv }}
docker:
name: Build Docker Image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
name: Checkout the repo
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@94ab11c41e45d028884a99163086648e898eed25
with:
install: true
- name: Build
run: |
docker build .
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3-alpine as base
FROM python:3-alpine3.14 as base

WORKDIR /app

Expand All @@ -7,7 +7,7 @@ FROM base as builder
ENV PIP_DEFAULT_TIMEOUT=100 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
POETRY_VERSION=1.1.2
POETRY_VERSION=1.1.12

RUN apk add --no-cache cargo gcc libffi-dev musl-dev openssl-dev rust libgit2-dev
RUN pip --no-cache-dir install "poetry==$POETRY_VERSION"
Expand Down

0 comments on commit de94f6d

Please sign in to comment.