-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
19 lines (15 loc) · 830 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM elixir:latest
RUN apt-get update && apt-get install -y \
curl \
build-essential \
&& rm -rf /var/lib/apt/lists/*
ENV SHELL=bash
RUN curl https://dl.cloudsmith.io/public/ponylang/releases/raw/versions/0.8.0/ponyup-x86-64-unknown-linux.tar.gz -o ponyup.tgz
RUN mkdir -p /root/.local/share/ponyup/bin/ && mkdir -p /tmp/ponyup && tar xvzf ponyup.tgz -C /tmp/ponyup && mv /tmp/ponyup/*/bin/* /root/.local/share/ponyup/bin
RUN echo "x86_64-linux-ubuntu20.04" > /root/.local/share/ponyup/.platform && ln -sf /root/.local/share/ponyup/bin/ponyup /usr/bin/ponyup && ponyup default "x86_64-linux-ubuntu20.04"
RUN ln -sf /usr/local/lib/erlang /usr/lib/erlang && ponyup update ponyc release && ln -sf /root/.local/share/ponyup/bin/ponyc /usr/bin/ponyc
ENV CC=cc
COPY . /src/main/
WORKDIR /src/main
RUN ./build.sh
CMD ./test.sh