-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
51 lines (35 loc) · 1.06 KB
/
Dockerfile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# build command:
# docker build -t rbrewer123/ponyc .
FROM ubuntu:14.04
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
clang-3.6 \
curl \
libncurses5-dev \
libssl-dev \
llvm-3.6 \
llvm-3.6-dev \
make \
zlib1g-dev
ENV CC clang-3.6
ENV CXX clang++-3.6
RUN mkdir -p /usr/src
RUN curl -SL -o /usr/src/repo.tbz2 ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.20.tar.bz2 && \
tar xf /usr/src/repo.tbz2 -C /usr/src && \
ln -s /usr/src/*pcre* /usr/src/pcre
WORKDIR /usr/src/pcre
RUN ./configure --prefix=/usr && \
make && \
make install
WORKDIR /
RUN curl -SL -o /usr/src/repo.tgz https://api.github.com/repos/CausalityLtd/ponyc/tarball/master && \
tar xf /usr/src/repo.tgz -C /usr/src && \
ln -s /usr/src/*ponyc* /usr/src/ponyc
WORKDIR /usr/src/ponyc
RUN make config=release test && \
./build/release/ponyc examples/helloworld && \
./helloworld
COPY runasuser.sh /root/
RUN chmod a+x /root/runasuser.sh
RUN mkdir /data
WORKDIR /data
ENTRYPOINT ["/root/runasuser.sh"]