forked from ponylang/ponyc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (27 loc) · 760 Bytes
/
Dockerfile
File metadata and controls
33 lines (27 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu:16.04
ENV LLVM_VERSION 3.9.1
RUN apt-get update \
&& apt-get install -y \
g++ \
git \
libncurses5-dev \
libpcre2-dev \
libssl-dev \
make \
wget \
xz-utils \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* \
&& wget -O - http://llvm.org/releases/${LLVM_VERSION}/clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-16.04.tar.xz \
| tar xJf - --strip-components 1 -C /usr/local/ clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-16.04
WORKDIR /src/ponyc
COPY Makefile LICENSE VERSION /src/ponyc/
COPY src /src/ponyc/src
COPY lib /src/ponyc/lib
COPY test /src/ponyc/test
COPY packages /src/ponyc/packages
RUN make arch=x86-64 tune=intel \
&& make install \
&& rm -rf /src/ponyc/build
WORKDIR /src/main
CMD ponyc