-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
38 lines (28 loc) · 912 Bytes
/
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
FROM ubuntu:trusty
MAINTAINER Songge Chen <chen.s@wustl.edu>
#Set Your Environment Variables
ENV CIRCLE_PROJECT_REPONAME belvedere
ENV ERLANG_VERSION 17.5
ENV ELIXIR_VERSION v1.0.4
ENV MIX_ENV test
ENV HOME /root
ENV INSTALL_PATH $HOME/dependencies
ENV ERLANG_PATH $INSTALL_PATH/otp_src_$ERLANG_VERSION
ENV ELIXIR_PATH $INSTALL_PATH/elixir_$ELIXIR_VERSION
ENV DIALYZER_PATH $INSTALL_PATH/dialyxir
ENV PATH $ERLANG_PATH/bin:$ELIXIR_PATH/bin:$PATH:$ERLANG_PATH/bin:$PATH
RUN apt-get update && apt-get install -y \
curl \
git \
autoconf \
libncurses-dev \
build-essential \
libssl-dev \
libcurl4-openssl-dev
ADD . /root/$CIRCLE_PROJECT_REPONAME
WORKDIR /root/$CIRCLE_PROJECT_REPONAME
RUN \
chmod 755 /root/$CIRCLE_PROJECT_REPONAME/scripts/ci/*.sh
RUN \
/root/$CIRCLE_PROJECT_REPONAME/scripts/ci/prepare.sh && \
/root/$CIRCLE_PROJECT_REPONAME/scripts/ci/build.sh