Skip to content

Instantly share code, notes, and snippets.

@paulp
Created March 8, 2018 23:03
Embed
What would you like to do?
urbit dockerfile
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