Skip to content

Instantly share code, notes, and snippets.

@paulp
Created March 8, 2018 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulp/c49bf0bd42b3ed61e5c0407fe814fce6 to your computer and use it in GitHub Desktop.
Save paulp/c49bf0bd42b3ed61e5c0407fe814fce6 to your computer and use it in GitHub Desktop.
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