introduce build parameters
This commit is contained in:
parent
92782f1352
commit
5600b8056b
4 changed files with 58 additions and 19 deletions
|
|
@ -25,15 +25,6 @@ FROM docker.io/library/python:${PYTHON_VERSION}-${DEBIAN_VERSION} AS pybuilder
|
|||
ENV PYTHONUNBUFFERED=1
|
||||
ENV PIP_ROOT_USER_ACTION=ignore
|
||||
|
||||
RUN <<EOF
|
||||
# install packages
|
||||
set -e
|
||||
apt update
|
||||
apt -y upgrade
|
||||
apt -y install libolm-dev
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
|
||||
COPY --from=gobuilder /pygomx-build/libmxclient.so /usr/local/lib/libmxclient.so
|
||||
COPY --from=gobuilder /pygomx-build/libmxclient.h /usr/local/include/libmxclient.h
|
||||
|
||||
|
|
@ -45,7 +36,7 @@ RUN <<EOF
|
|||
# build py module
|
||||
set -e
|
||||
cd /pygomx
|
||||
PYGOMX_LINK_OLM=1 python3 build_ffi.py
|
||||
PYGOMX_BUILD_MODE=shared python3 build_ffi.py
|
||||
ls -la *.so
|
||||
EOF
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue