Last active
June 1, 2017 20:06
-
-
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
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 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¬ |
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
| actor Main | |
| new create(env: Env) => | |
| env.out.print("hello world") |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using this dockerfile to compile this sample pony program results in a segfault: