-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
68 lines (55 loc) · 1.6 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FROM ubuntu:16.04
ENV DEBIAN_FRONTEND noninteractive
ENV TERM linux
SHELL ["/bin/bash", "-c"]
ENV ELM_VERSION=0.18.0
ENV SBT_VERSION=0.13.16
ENV SCALA_VERSION=2.11.11
RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y install apt-utils
RUN apt-get -y install locales
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG=en_US.utf8
RUN apt-get -y install autoconf \
automake \
curl \
dnsutils \
git \
libffi-dev \
libncurses-dev \
libreadline-dev \
libtool \
libxslt-dev \
libyaml-dev \
openjdk-8-jdk \
openjfx \
postgresql-client \
unixodbc-dev \
vim
ENV HOME /root
RUN git clone https://github.com/asdf-vm/asdf.git $HOME/.asdf --branch v0.4.0
RUN echo -e '\n. $HOME/.asdf/asdf.sh' >> $HOME/.bashrc
RUN echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> $HOME/.bashrc
ENV ASDF_DIR $HOME/.asdf
ENV PATH ${ASDF_DIR}/bin:${ASDF_DIR}/shims:$PATH
RUN asdf plugin-add elm && \
asdf plugin-add sbt https://github.com/vpeurala/asdf-sbt && \
asdf plugin-add scala && \
asdf install elm ${ELM_VERSION} && \
asdf install sbt ${SBT_VERSION} && \
asdf install scala ${SCALA_VERSION} && \
asdf global elm ${ELM_VERSION} && \
asdf global sbt ${SBT_VERSION} && \
asdf global scala ${SCALA_VERSION}
# Fill the caches
COPY warmup /warmup
WORKDIR /warmup
RUN sbt update
# Sometimes this is left after `sbt update`: a bug in sbt, maybe?
RUN rm -rf /root/.ivy2/.sbt.ivy.lock
RUN elm-package install -y
# Set Timezone
RUN apt-get -y install tzdata
RUN ln -sf /usr/share/zoneinfo/Europe/Helsinki /etc/localtime
RUN echo "Europe/Helsinki" > /etc/timezone