restored arm build for jupyter-python image
Some checks failed
CI / Build Jupyter python Docker images (push) Failing after 1m51s

This commit is contained in:
2024-09-02 20:21:35 +08:00
parent b931eacf31
commit fb5720f300
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ jobs:
uses: docker/build-push-action@v5.3.0 uses: docker/build-push-action@v5.3.0
with: with:
context: "{{defaultContext}}:jupyter-python" context: "{{defaultContext}}:jupyter-python"
platforms: linux/amd64 platforms: linux/amd64,linux/arm64
push: true push: true
pull: true pull: true
tags: gitea.woggioni.net/woggioni/jupyter-python:latest tags: gitea.woggioni.net/woggioni/jupyter-python:latest

View File

@@ -2,7 +2,7 @@ FROM debian:stable AS build
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \
apt update &&\ apt update &&\
apt install -y python3 python3-dev pipx gcc g++ linux-headers-amd64 libffi-dev cargo cmake autoconf swig ninja-build patchelf meson python3-faiss apt install -y python3 python3-dev pipx gcc g++ linux-headers-$(uname -r) libffi-dev cargo cmake autoconf swig ninja-build patchelf meson python3-faiss
RUN adduser -u 1000 --system --shell /bin/sh --home /home/jovyan jovyan RUN adduser -u 1000 --system --shell /bin/sh --home /home/jovyan jovyan
USER jovyan USER jovyan
WORKDIR /home/jovyan WORKDIR /home/jovyan