Created
August 23, 2022 16:53
-
-
Save srl295/08ecb5e61ecc3351bd43296c501e9ad0 to your computer and use it in GitHub Desktop.
Build keyman core on linux via docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM --platform=amd64 ubuntu:latest | |
USER root | |
ENV HOME /home/build | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN useradd -c "Build user" -d $HOME -m build | |
RUN apt-get -q -y update && apt-get -q -y upgrade | |
RUN apt-get -q -y install devscripts equivs | |
# TODO: assume that linux/debian/control was copied into the same directory | |
COPY control /tmp/control | |
RUN (yes | mk-build-deps --install /tmp/control) || true | |
RUN apt-get -q -y install meson | |
RUN apt-get -q -y install python3 python3-setuptools | |
VOLUME /home/build | |
WORKDIR /home/build | |
USER build | |
# To use: | |
# $ docker build -t keyman-linux-build . | |
# $ cd keyman/core | |
# $ mkdir -p build/linux | |
# $ docker run -it --rm -v $(pwd)/..:/home/build -v $(pwd)/build/linux:/home/build/core/build keyman-linux-builder:latest bash -c 'cd core; bash build.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see keymanapp/keyman#7102