Skip to content

Commit 1fa81eb

Browse files
Theodusjemc
authored andcommitted
Update Dockerfile to use LLVM 3.9 (ponylang#1368)
The Dockerfile was using the apt package llvm-dev which installed llvm 3.8.0. This change will Install the prebuilt binary of llvm 3.9.0 instead.
1 parent 7c0b6e5 commit 1fa81eb

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Dockerfile

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
FROM ubuntu:16.04
22

33
RUN apt-get update \
4-
&& apt-get install -y make g++ git \
4+
&& apt-get install -y make g++ git wget xz-utils \
55
zlib1g-dev libncurses5-dev libssl-dev \
6-
llvm-dev libpcre2-dev \
7-
&& rm -rf /var/lib/apt/lists/*
6+
libpcre2-dev \
7+
&& rm -rf /var/lib/apt/lists/* \
8+
&& wget http://llvm.org/releases/3.9.0/clang+llvm-3.9.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz \
9+
&& tar xf clang+llvm-3.9.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz \
10+
&& cp -r clang+llvm-3.9.0-x86_64-linux-gnu-ubuntu-16.04/* /usr/local \
11+
&& rm -rf /clang*
812

913
WORKDIR /src/ponyc
1014
COPY Makefile LICENSE VERSION /src/ponyc/
@@ -13,10 +17,11 @@ COPY lib /src/ponyc/lib
1317
COPY test /src/ponyc/test
1418
COPY packages /src/ponyc/packages
1519

16-
RUN make config=release install \
20+
RUN make \
21+
&& make install \
1722
&& rm -rf /src/ponyc/build
1823

1924
RUN mkdir /src/main
20-
WORKDIR /src/main
25+
WORKDIR /src/main
2126

2227
CMD ponyc

0 commit comments

Comments
 (0)