mirror of
https://github.com/correl/docker-erlang.git
synced 2024-11-29 03:00:08 +00:00
Clean up source/build directories after installing
This commit is contained in:
parent
4068ec9678
commit
b81ecc8076
3 changed files with 18 additions and 9 deletions
|
@ -24,20 +24,23 @@ RUN cd /usr/src \
|
||||||
&& cd otp_src_${OTP_VERSION} \
|
&& cd otp_src_${OTP_VERSION} \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
&& make \
|
&& make \
|
||||||
&& make install
|
&& make install \
|
||||||
|
&& cd / && rm -rf /usr/src/otp_src_${OTP_VERSION}
|
||||||
|
|
||||||
ADD https://github.com/rebar/rebar/archive/${REBAR_VERSION}.tar.gz /usr/src/rebar-${REBAR_VERSION}.tar.gz
|
ADD https://github.com/rebar/rebar/archive/${REBAR_VERSION}.tar.gz /usr/src/rebar-${REBAR_VERSION}.tar.gz
|
||||||
RUN cd /usr/src \
|
RUN cd /usr/src \
|
||||||
&& tar zxf rebar-${REBAR_VERSION}.tar.gz \
|
&& tar zxf rebar-${REBAR_VERSION}.tar.gz \
|
||||||
&& cd rebar-${REBAR_VERSION} \
|
&& cd rebar-${REBAR_VERSION} \
|
||||||
&& make \
|
&& make \
|
||||||
&& cp rebar /usr/bin/rebar
|
&& cp rebar /usr/bin/rebar \
|
||||||
|
&& cd / && rm -rf /usr/src/rebar-${REBAR_VERSION}
|
||||||
|
|
||||||
ADD https://github.com/erlware/relx/archive/${RELX_VERSION}.tar.gz /usr/src/relx-${RELX_VERSION}.tar.gz
|
ADD https://github.com/erlware/relx/archive/${RELX_VERSION}.tar.gz /usr/src/relx-${RELX_VERSION}.tar.gz
|
||||||
RUN cd /usr/src \
|
RUN cd /usr/src \
|
||||||
&& tar zxf relx-${RELX_VERSION}.tar.gz \
|
&& tar zxf relx-${RELX_VERSION}.tar.gz \
|
||||||
&& cd relx-${RELX_VERSION} \
|
&& cd relx-${RELX_VERSION} \
|
||||||
&& make \
|
&& make \
|
||||||
&& cp relx /usr/bin/relx
|
&& cp relx /usr/bin/relx \
|
||||||
|
&& cd / && rm -rf /usr/src/relx-${RELX_VERSION}
|
||||||
|
|
||||||
CMD ["erl"]
|
CMD ["erl"]
|
||||||
|
|
|
@ -24,20 +24,23 @@ RUN cd /usr/src \
|
||||||
&& cd otp_src_${OTP_VERSION%-1} \
|
&& cd otp_src_${OTP_VERSION%-1} \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
&& make \
|
&& make \
|
||||||
&& make install
|
&& make install \
|
||||||
|
&& cd / && rm -rf /usr/src/otp_src_${OTP_VERSION%-1}
|
||||||
|
|
||||||
ADD https://github.com/rebar/rebar/archive/${REBAR_VERSION}.tar.gz /usr/src/rebar-${REBAR_VERSION}.tar.gz
|
ADD https://github.com/rebar/rebar/archive/${REBAR_VERSION}.tar.gz /usr/src/rebar-${REBAR_VERSION}.tar.gz
|
||||||
RUN cd /usr/src \
|
RUN cd /usr/src \
|
||||||
&& tar zxf rebar-${REBAR_VERSION}.tar.gz \
|
&& tar zxf rebar-${REBAR_VERSION}.tar.gz \
|
||||||
&& cd rebar-${REBAR_VERSION} \
|
&& cd rebar-${REBAR_VERSION} \
|
||||||
&& make \
|
&& make \
|
||||||
&& cp rebar /usr/bin/rebar
|
&& cp rebar /usr/bin/rebar \
|
||||||
|
&& cd / && rm -rf /usr/src/rebar-${REBAR_VERSION}
|
||||||
|
|
||||||
ADD https://github.com/erlware/relx/archive/${RELX_VERSION}.tar.gz /usr/src/relx-${RELX_VERSION}.tar.gz
|
ADD https://github.com/erlware/relx/archive/${RELX_VERSION}.tar.gz /usr/src/relx-${RELX_VERSION}.tar.gz
|
||||||
RUN cd /usr/src \
|
RUN cd /usr/src \
|
||||||
&& tar zxf relx-${RELX_VERSION}.tar.gz \
|
&& tar zxf relx-${RELX_VERSION}.tar.gz \
|
||||||
&& cd relx-${RELX_VERSION} \
|
&& cd relx-${RELX_VERSION} \
|
||||||
&& make \
|
&& make \
|
||||||
&& cp relx /usr/bin/relx
|
&& cp relx /usr/bin/relx \
|
||||||
|
&& cd / && rm -rf /usr/src/relx-${RELX_VERSION}
|
||||||
|
|
||||||
CMD ["erl"]
|
CMD ["erl"]
|
||||||
|
|
|
@ -24,20 +24,23 @@ RUN cd /usr/src \
|
||||||
&& cd otp_src_${OTP_VERSION} \
|
&& cd otp_src_${OTP_VERSION} \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
&& make \
|
&& make \
|
||||||
&& make install
|
&& make install \
|
||||||
|
&& cd / && rm -rf /usr/src/otp_src_${OTP_VERSION}
|
||||||
|
|
||||||
ADD https://github.com/rebar/rebar/archive/${REBAR_VERSION}.tar.gz /usr/src/rebar-${REBAR_VERSION}.tar.gz
|
ADD https://github.com/rebar/rebar/archive/${REBAR_VERSION}.tar.gz /usr/src/rebar-${REBAR_VERSION}.tar.gz
|
||||||
RUN cd /usr/src \
|
RUN cd /usr/src \
|
||||||
&& tar zxf rebar-${REBAR_VERSION}.tar.gz \
|
&& tar zxf rebar-${REBAR_VERSION}.tar.gz \
|
||||||
&& cd rebar-${REBAR_VERSION} \
|
&& cd rebar-${REBAR_VERSION} \
|
||||||
&& make \
|
&& make \
|
||||||
&& cp rebar /usr/bin/rebar
|
&& cp rebar /usr/bin/rebar \
|
||||||
|
&& cd / && rm -rf /usr/src/rebar-${REBAR_VERSION}
|
||||||
|
|
||||||
ADD https://github.com/erlware/relx/archive/${RELX_VERSION}.tar.gz /usr/src/relx-${RELX_VERSION}.tar.gz
|
ADD https://github.com/erlware/relx/archive/${RELX_VERSION}.tar.gz /usr/src/relx-${RELX_VERSION}.tar.gz
|
||||||
RUN cd /usr/src \
|
RUN cd /usr/src \
|
||||||
&& tar zxf relx-${RELX_VERSION}.tar.gz \
|
&& tar zxf relx-${RELX_VERSION}.tar.gz \
|
||||||
&& cd relx-${RELX_VERSION} \
|
&& cd relx-${RELX_VERSION} \
|
||||||
&& make \
|
&& make \
|
||||||
&& cp relx /usr/bin/relx
|
&& cp relx /usr/bin/relx \
|
||||||
|
&& cd / && rm -rf /usr/src/relx-${RELX_VERSION}
|
||||||
|
|
||||||
CMD ["erl"]
|
CMD ["erl"]
|
||||||
|
|
Loading…
Reference in a new issue