forked from micke/asdf-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (16 loc) · 965 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
FROM heroku/heroku:24
ENV DOCKERIZE_VERSION v0.8.0
RUN apt-get update -q && apt-get install -y git curl build-essential libssl-dev automake autoconf libncurses-dev
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
COPY asdf-install-plugins /bin/asdf-install-plugins
COPY asdf-install-versions /bin/asdf-install-versions
WORKDIR /root
RUN git clone --depth 1 https://github.com/asdf-vm/asdf.git $HOME/.asdf
RUN echo 'export LC_ALL="en_US.UTF-8"' >> $HOME/.profile
RUN echo 'export LC_CTYPE="en_US.UTF-8"' >> $HOME/.profile
RUN echo 'export MAKEFLAGS="-j2"' >> $HOME/.profile
RUN echo 'export KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac"' >> $HOME/.profile
RUN echo '. $HOME/.asdf/asdf.sh' >> $HOME/.profile
CMD ["bash"]