From 0ec6c2308fbf015d2c68acaa1c068098690708e7 Mon Sep 17 00:00:00 2001 From: Walter Oggioni Date: Tue, 28 May 2024 04:18:37 +0800 Subject: [PATCH] removed arm64 architecture --- .gitea/workflows/build.yaml | 12 +++++++++--- jupyter-python/Dockerfile | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index ad4d81d..2e9ea36 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -13,7 +13,7 @@ jobs: name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: - driver: docker + driver: docker-container - name: Login to Gitea container registry uses: docker/login-action@v3 @@ -26,14 +26,20 @@ jobs: uses: docker/build-push-action@v5.3.0 with: context: "{{defaultContext}}:jupyter-python" - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 push: true tags: gitea.woggioni.net/woggioni/jupyter-python:latest + cache-from: type=registry,ref=gitea.woggioni.net/woggioni/jupyter-python:buildx + cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/jupyter-python:buildx + - name: Build and push jupyter-ganymede image uses: docker/build-push-action@v5.3.0 with: context: "{{defaultContext}}:jupyter-ganymede" - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 push: true tags: gitea.woggioni.net/woggioni/jupyter-ganymede:latest + cache-from: type=registry,ref=gitea.woggioni.net/woggioni/jupyter-ganymede:buildx + cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/jupyter-ganymede:buildx + diff --git a/jupyter-python/Dockerfile b/jupyter-python/Dockerfile index bba7479..eb316f5 100644 --- a/jupyter-python/Dockerfile +++ b/jupyter-python/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:3.19 AS build RUN --mount=type=cache,target=/var/cache/apk/,sharing=locked \ apk update &&\ - apk add python3 python3-dev pipx gcc g++ musl-dev linux-headers libffi-dev cargo + apk add python3 python3-dev pipx gcc g++ musl-dev linux-headers libffi-dev cargo cmake autoconf RUN adduser jovyan -u 1000 --system -s /bin/sh -h /home/jovyan USER jovyan WORKDIR /home/jovyan