aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml10
-rw-r--r--Dockerfile2
2 files changed, 5 insertions, 7 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f424eff..4918327 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -21,12 +21,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- # The current version (v2) of Docker's build-push action uses
- # buildx, which comes with BuildKit features that help us speed
- # up our builds using additional cache features. Buildx also
- # has a lot of other features that are not as relevant to us.
- #
- # See https://github.com/docker/build-push-action
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v2
+
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
@@ -46,6 +43,7 @@ jobs:
context: .
file: ./Dockerfile
push: true
+ platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=ghcr.io/owl-corp/python-poetry-base:${{ matrix.python_version }}
cache-to: type=inline
tags: |
diff --git a/Dockerfile b/Dockerfile
index 606a5d5..8dda871 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,6 @@
ARG python_version=3.11-slim
-FROM --platform=linux/amd64 python:$python_version
+FROM python:$python_version
# POETRY_VIRTUALENVS_IN_PROJECT is required to ensure in-projects venvs mounted from the host in dev
# don't get prioritised by `poetry run`