Skip to content

Commit

Permalink
github action: python 3.11 likes arm64/v8?
Browse files Browse the repository at this point in the history
  • Loading branch information
dale-wahl committed Feb 6, 2025
1 parent 6367500 commit b28b31f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
push: true
tags: digitalmethodsinitiative/4cat:latest

# We could combine the two jobs into one (with continue-on-error: true). Running two jobs has the advantage of running them at the same time, but, possibly, requires more resources.
push_to_registry_arm64:
name: Push Docker image to Docker Hub (arm64)
runs-on: ubuntu-latest
Expand Down Expand Up @@ -72,7 +73,8 @@ jobs:
with:
context: .
file: docker/Dockerfile
platforms: linux/arm64
# python:3.11-slim is not available for arm64, so we build for arm64/v8
# https://hub.docker.com/_/python/
platforms: linux/arm64/v8
push: true
tags: digitalmethodsinitiative/4cat:latest

2 changes: 0 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ FROM python:3.11-slim

RUN apt-get update && apt install -y \
# General requirements:
build-essential \
libpq-dev \
python3-dev \
python3-pip \
gcc \
# Called in docker-entrypoint.sh:
curl \
netcat-traditional \
Expand Down

0 comments on commit b28b31f

Please sign in to comment.