sha256:8579588046ed53c7ae235fdaf1a59924fe380de5c73b83908ec0f3a2c3937c22
OS/ARCH
Compressed size
114.84 MB
Last pushed
10 days by doijanky
Type
Image
Vulnerabilities
Manifest digest
sha256:6c66f4a0f14b167637de5ac7bf4ab27037ecb5d81466b6a2cebb6a8233553f1e
1
ENV OTP_VERSION=28.5.0.7 REBAR3_VERSION=3.27.0
0 B
2
LABEL org.opencontainers.image.version=28.5.0.7
0 B
3
RUN /bin/sh -c set -xe && OTP_DOWNLOAD_URL="https://github.com/erlang/otp/releases/download/OTP-${OTP_VERSION}/otp_src_${OTP_VERSION}.tar.gz" && OTP_DOWNLOAD_SHA256="ddf17db6d3e9b7a7cfac0d72238ddc8ea040fedc5e3dfad82fc90675319d6c93" && fetchDeps=' curl ca-certificates' && apt-get update && apt-get install -y --no-install-recommends $fetchDeps && curl -fSL -o otp-src.tar.gz "$OTP_DOWNLOAD_URL" && echo "$OTP_DOWNLOAD_SHA256 otp-src.tar.gz" | sha256sum -c - && runtimeDeps=' libodbc2 libssl3t64 libsctp1 ' && buildDeps=' autoconf dpkg-dev gcc g++ make libncurses-dev unixodbc-dev libssl-dev libsctp-dev ' && apt-get install -y --no-install-recommends $runtimeDeps && apt-get install -y --no-install-recommends $buildDeps && export ERL_TOP="/usr/src/otp_src_${OTP_VERSION%%@*}" && mkdir -vp $ERL_TOP && tar -xzf otp-src.tar.gz -C $ERL_TOP --strip-components=1 && rm otp-src.tar.gz && ( cd $ERL_TOP && ./otp_build autoconf && gnuArch="$(dpkg-architecture --query DEB_HOST_GNU_TYPE)" && ./configure --build="$gnuArch" && make -j$(nproc) && make install ) && find /usr/local -name examples | xargs rm -rf && REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" && REBAR3_DOWNLOAD_SHA256="985cae6e957334cfa549190b9f5efb9185c184a18fc181c87b8dde096ba79f38" && mkdir -p /usr/src/rebar3-src && curl -fSL -o rebar3-src.tar.gz "$REBAR3_DOWNLOAD_URL" && echo "$REBAR3_DOWNLOAD_SHA256 rebar3-src.tar.gz" | sha256sum -c - && tar -xzf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 && rm rebar3-src.tar.gz && cd /usr/src/rebar3-src && HOME=$PWD ./bootstrap && install -v ./rebar3 /usr/local/bin/ && rm -rf /usr/src/rebar3-src && apt-get purge -y --auto-remove $buildDeps $fetchDeps && rm -rf $ERL_TOP /var/lib/apt/lists/* # buildkit
69.53 MB
4
CMD ["erl"]
0 B