Skip to content

Commit

Permalink
Merge pull request #783 from xin3liang/fix-nvmeof-building-for-arm64
Browse files Browse the repository at this point in the history
build: fix nvmeof image build for arm64
  • Loading branch information
xin3liang authored Aug 7, 2024
2 parents 817554e + 809bcb2 commit d05304b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=off \
PYTHON_MAJOR=3 \
PYTHON_MINOR=9 \
PDM_ONLY_BINARY=:all:
PDM_PREFER_BINARY=:all:

ARG APPDIR=/src

Expand Down Expand Up @@ -116,7 +116,7 @@ WORKDIR $APPDIR

#------------------------------------------------------------------------------
FROM python-intermediate AS builder-base
ARG PDM_VERSION=2.7.4 \
ARG PDM_VERSION=2.17.3 \
PDM_INSTALL_CMD=sync \
PDM_INSTALL_FLAGS="-v --no-isolation --no-self --no-editable" \
PDM_INSTALL_DEV=""
Expand All @@ -128,10 +128,11 @@ ENV PDM_CHECK_UPDATE=0
RUN \
--mount=type=cache,target=/var/cache/dnf \
--mount=type=cache,target=/var/lib/dnf \
dnf install -y python3-pip
dnf install -y python3-pip && \
dnf install -y gcc python3-devel
RUN \
--mount=type=cache,target=/root/.cache/pip \
pip install -U pip setuptools
pip install -U pip setuptools wheel

RUN \
--mount=type=cache,target=/root/.cache/pip \
Expand Down

0 comments on commit d05304b

Please sign in to comment.