Skip to content

Commit

Permalink
Fix docker build issue on arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
icgood committed Apr 27, 2024
1 parent 3be6011 commit 33828ce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: docker-publish
name: docker

on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
release:
Expand All @@ -18,6 +20,7 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -39,6 +42,6 @@ jobs:
context: .
file: ./docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
17 changes: 0 additions & 17 deletions .github/workflows/docker-check.yml

This file was deleted.

6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ FROM python:3.11-alpine
WORKDIR /pymap
COPY . .

RUN pip install -U pip hatch typing-extensions
RUN apk add --no-cache py3-cffi py3-hatchling

RUN apk --update add --virtual build-dependencies \
build-base python3-dev libffi-dev \
RUN apk --update add --virtual build-dependencies python3-dev build-base \
&& pip install hatch \
&& hatch env create docker \
&& apk del build-dependencies

Expand Down

0 comments on commit 33828ce

Please sign in to comment.