Hi,
I'm using Scala in some Docker containers. So, in my containers I have to install Sbt.
This is my Dockerfile :
FROM colisweb/debian-oracle-java8
MAINTAINER Jules Ivanic <jules@colisweb.com>
RUN \
# Install sbt
echo "deb http://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list \
&& apt-get update \
&& apt-get install -y --force-yes sbt \
&& sbt --version
At the end, I print the sbt version.
If I let this last line my docker build fail with the following error :
INFO[0061] The command [/bin/sh -c echo "deb http://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list && apt-get update && apt-get install -y --force-yes sbt && sbt --version] returned a non-zero code: 1
If i remove this last line, my docker build is OK.
Why do "sbt --version" return a non-zero code ??
Jules