Skip to content

Instantly share code, notes, and snippets.

@mfelsche
Last active June 1, 2017 20:06
Show Gist options
  • Select an option

  • Save mfelsche/1e7cc1974054843295675f912b6d5591 to your computer and use it in GitHub Desktop.

Select an option

Save mfelsche/1e7cc1974054843295675f912b6d5591 to your computer and use it in GitHub Desktop.
Dockerfile installing ponyc deb from bintray repo and llvm-3.9 from http://apt.llvm.org
FROM ubuntu:xenial¬
¬
ENV LLVM_VERSION 3.9.1¬
¬
RUN apt-get update \¬
&& apt-get install -y \¬
apt-transport-https \¬
g++ \¬
git \¬
vim \¬
wget \¬
&& rm -rf /var/lib/apt/lists/*¬
¬
RUN echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-3.9 main" > /etc/apt/sources.list.d/llvm.list \¬
&& wget http://apt.llvm.org/llvm-snapshot.gpg.key \¬
&& apt-key add llvm-snapshot.gpg.key \¬
&& apt-get update \¬
&& apt-get -V install -y llvm-3.9 \¬
&& rm -rf /var/lib/apt/lists/*¬
¬
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys "8756 C4F7 65C9 AC3C B6B8 5D62 379C E192 D401 AB61" \¬
&& echo "deb https://dl.bintray.com/pony-language/ponyc-debian pony-language main" > /etc/apt/sources.list.d/ponylang.list \¬
&& apt-get update \¬
&& apt-get -V install -y ponyc \¬
&& rm -rf /var/lib/apt/lists/*¬
¬
WORKDIR /src/main¬
CMD ponyc¬
actor Main
new create(env: Env) =>
env.out.print("hello world")
@mfelsche
Copy link
Author

mfelsche commented Jun 1, 2017

Using this dockerfile to compile this sample pony program results in a segfault:

Building builtin -> /usr/lib/pony/0.14.0-3301.681301f/packages/builtin
Segmentation fault (core dumped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment