Commit 698cd6e5 authored by Mr C0B's avatar Mr C0B Committed by Derek

move OTP_DOWNLOAD_SHA1 to be build time only.

parent c85ebec8
FROM buildpack-deps:jessie
ENV OTP_VERSION 17.5.6.4
ENV OTP_DOWNLOAD_SHA1 8436bbc750dc90580842e907f911255228d2d070
ENV LANG C.UTF-8
# We'll install the build dependencies for erlang-odbc along with the erlang
# build process:
......@@ -11,6 +9,7 @@ RUN buildDeps='unixodbc-dev' \
&& apt-get update \
&& apt-get install -y --no-install-recommends $buildDeps \
&& mkdir -p /usr/src/otp-src \
&& OTP_DOWNLOAD_SHA1=8436bbc750dc90580842e907f911255228d2d070 \
&& curl -fSL -o otp-src.tar.gz "https://github.com/erlang/otp/archive/OTP-$OTP_VERSION.tar.gz" \
&& echo "$OTP_DOWNLOAD_SHA1 otp-src.tar.gz" | sha1sum -c - \
&& tar -xzf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \
......
FROM debian:jessie
ENV OTP_VERSION 17.5.6.4
ENV OTP_DOWNLOAD_SHA1 8436bbc750dc90580842e907f911255228d2d070
ENV LANG C.UTF-8
# We'll install the build dependencies, and purge them on the last step to make
# sure our final image contains only what we've just built:
......@@ -29,6 +27,7 @@ RUN buildDeps=' \
&& apt-get install -y --no-install-recommends $buildDeps \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/src/otp-src \
&& OTP_DOWNLOAD_SHA1=8436bbc750dc90580842e907f911255228d2d070 \
&& curl -fSL -o otp-src.tar.gz "https://github.com/erlang/otp/archive/OTP-$OTP_VERSION.tar.gz" \
&& echo "$OTP_DOWNLOAD_SHA1 otp-src.tar.gz" | sha1sum -c - \
&& tar -xzf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \
......
FROM buildpack-deps:jessie
ENV OTP_VERSION 18.1.3
ENV OTP_DOWNLOAD_SHA1 981e6c03c0a310483e6c14edb7dd2acaa842e2f8
ENV LANG C.UTF-8
# We'll install the build dependencies for erlang-odbc along with the erlang
# build process:
......@@ -11,6 +9,7 @@ RUN buildDeps='unixodbc-dev' \
&& apt-get update \
&& apt-get install -y --no-install-recommends $buildDeps \
&& mkdir -p /usr/src/otp-src \
&& OTP_DOWNLOAD_SHA1=981e6c03c0a310483e6c14edb7dd2acaa842e2f8 \
&& curl -fSL -o otp-src.tar.gz "https://github.com/erlang/otp/archive/OTP-$OTP_VERSION.tar.gz" \
&& echo "$OTP_DOWNLOAD_SHA1 otp-src.tar.gz" | sha1sum -c - \
&& tar -xzf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \
......
FROM debian:jessie
ENV OTP_VERSION 18.1.3
ENV OTP_DOWNLOAD_SHA1 981e6c03c0a310483e6c14edb7dd2acaa842e2f8
ENV LANG C.UTF-8
# We'll install the build dependencies, and purge them on the last step to make
# sure our final image contains only what we've just built:
......@@ -30,6 +28,7 @@ RUN buildDeps=' \
&& apt-get install -y --no-install-recommends $buildDeps \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/src/otp-src \
&& OTP_DOWNLOAD_SHA1=981e6c03c0a310483e6c14edb7dd2acaa842e2f8 \
&& curl -fSL -o otp-src.tar.gz "https://github.com/erlang/otp/archive/OTP-$OTP_VERSION.tar.gz" \
&& echo "$OTP_DOWNLOAD_SHA1 otp-src.tar.gz" | sha1sum -c - \
&& tar -xzf otp-src.tar.gz -C /usr/src/otp-src --strip-components=1 \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment