sbt 1.4.1 (#17)
* sbt 1.4.1 * Run sbt from temporary working directory rather than root We were running into https://github.com/sbt/sbt/issues/1458 Co-authored-by: Jeff Klukas <jeff@klukas.net>
This commit is contained in:
Родитель
9de5e62ae5
Коммит
6842f21545
|
@ -4,13 +4,17 @@
|
|||
ARG OPENJDK_TAG=8u232
|
||||
FROM openjdk:${OPENJDK_TAG}
|
||||
|
||||
ARG SBT_VERSION=1.3.13
|
||||
ARG SBT_VERSION=1.4.1
|
||||
|
||||
# Install sbt
|
||||
RUN \
|
||||
mkdir /working/ && \
|
||||
cd /working/ && \
|
||||
curl -L -o sbt-$SBT_VERSION.deb https://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb && \
|
||||
dpkg -i sbt-$SBT_VERSION.deb && \
|
||||
rm sbt-$SBT_VERSION.deb && \
|
||||
apt-get update && \
|
||||
apt-get install sbt && \
|
||||
cd && \
|
||||
rm -r /working/ && \
|
||||
sbt sbtVersion
|
||||
|
|
|
@ -28,7 +28,7 @@ local caches as volumes and set the working directory as well:
|
|||
To build, you need to specify the desired openjdk and sbt versions via
|
||||
`--build-arg` parameters:
|
||||
|
||||
docker build --build-arg OPENJDK_TAG=8u232 --build-arg SBT_VERSION=1.3.13 .
|
||||
docker build --build-arg OPENJDK_TAG=8u232 --build-arg SBT_VERSION=1.4.1 .
|
||||
|
||||
## Pushing a new tag to DockerHub
|
||||
|
||||
|
@ -42,7 +42,7 @@ Then use the following recipe to build and push:
|
|||
|
||||
```bash
|
||||
OPENJDK_TAG=8u232
|
||||
SBT_VERSION=1.3.13
|
||||
SBT_VERSION=1.4.1
|
||||
|
||||
docker build \
|
||||
--build-arg OPENJDK_TAG=$OPENJDK_TAG \
|
||||
|
|
Загрузка…
Ссылка в новой задаче