1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
MAINTAINER Cangjians (https://cangjie.pages.freedesktop.org/)
# basic environment for building
WORKDIR /usr/local/src/ibus-cangjie
# copy source files to build
COPY "." "./"
# This is now needed to build the lib as distutils was removed from Python 3.12
RUN ./install_deps.py
# build the library
RUN ./autogen.sh --prefix=/usr && \
make && \
if grep -q ID_LIKE=debian /usr/lib/os-release; then \
make install pyexecdir=/usr/lib/python3/dist-packages; \
else \
make install; \
fi
|