Created
March 8, 2018 23:03
-
-
Save paulp/c49bf0bd42b3ed61e5c0407fe814fce6 to your computer and use it in GitHub Desktop.
urbit dockerfile
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 alpine:latest | |
ENV TERM="vt100" \ | |
APK="apk add --no-cache" \ | |
EDGEREPO="http://dl-3.alpinelinux.org/alpine/edge/testing" | |
WORKDIR /root | |
RUN $APK bash curl-dev gmp-dev libuv-dev ncurses-dev openssl-dev \ | |
&& $APK --virtual .build-deps apk-tools file git g++ meson re2c \ | |
&& $APK --repository $EDGEREPO libsigsegv-dev \ | |
&& git clone --depth=1 --branch meson-build-clean https://github.com/mikolajpp/urbit \ | |
&& cd urbit \ | |
&& git submodule update \ | |
&& meson ../build \ | |
&& cd ../build \ | |
&& ninja \ | |
&& ln -s "$(pwd)/urbit" /usr/local/bin \ | |
&& rm -rf /root/urbit \ | |
&& apk del .build-deps | |
ENTRYPOINT [ "/usr/local/bin/urbit" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment