@@ -27,25 +27,26 @@ version in Docker := "1.0"
2727organization := " com.codacy"
2828
2929val installAll =
30- s """ apk update && apk add bash curl &&
31- |apk add --update python &&
32- |apk add --update python3 &&
33- |apk add wget ca-certificates &&
34- |apk add git &&
30+ s """ apk --no-cache add bash wget ca-certificates git &&
31+ |apk add --update --no-cache python &&
32+ |apk add --update --no-cache python3 &&
3533 |wget "https://bootstrap.pypa.io/get-pip.py" -O /dev/stdout | python &&
3634 |wget "https://bootstrap.pypa.io/get-pip.py" -O /dev/stdout | python3 &&
37- |apk del wget ca-certificates &&
38- |rm /var/cache/apk/* &&
39- |python -m pip install django==1.9.2 flask==0.10.1 pylint-flask==0.1 flask-wtf==0.12 &&
40- |python3 -m pip install django==1.9.2 flask==0.10.1 pylint-flask==0.1 flask-wtf==0.12 &&
41- |python -m pip install git+https://github.com/landscapeio/pylint-django@93fd04120d0690189c35b7b2eaace23117f388c5 &&
42- |python3 -m pip install git+https://github.com/landscapeio/pylint-django@93fd04120d0690189c35b7b2eaace23117f388c5 &&
35+ |python -m pip install django==1.9.2 flask==0.10.1 pylint-flask==0.1 flask-wtf==0.12 --upgrade --ignore-installed --no-cache-dir &&
36+ |python3 -m pip install django==1.9.2 flask==0.10.1 pylint-flask==0.1 flask-wtf==0.12 --upgrade --ignore-installed --no-cache-dir &&
37+ |python -m pip install git+https://github.com/landscapeio/pylint-django@93fd04120d0690189c35b7b2eaace23117f388c5 --upgrade --ignore-installed --no-cache-dir &&
38+ |python3 -m pip install git+https://github.com/landscapeio/pylint-django@93fd04120d0690189c35b7b2eaace23117f388c5 --upgrade --ignore-installed --no-cache-dir &&
4339 |python -m pip install pylint-common==0.2.2 &&
4440 |python3 -m pip install pylint-common==0.2.2 &&
4541 |python -m pip install pylint-celery==0.3 &&
4642 |python3 -m pip install pylint-celery==0.3 &&
4743 |python -m pip install pylint==1.6.4 --upgrade --ignore-installed --no-cache-dir &&
48- |python3 -m pip install pylint==1.6.4 --upgrade --ignore-installed --no-cache-dir """ .stripMargin.replaceAll(System .lineSeparator()," " )
44+ |python3 -m pip install pylint==1.6.4 --upgrade --ignore-installed --no-cache-dir &&
45+ |python -m pip uninstall -y pip &&
46+ |python3 -m pip uninstall -y pip &&
47+ |apk del wget ca-certificates git &&
48+ |rm -rf /tmp/* &&
49+ |rm -rf /var/cache/apk/* """ .stripMargin.replaceAll(System .lineSeparator()," " )
4950
5051mappings in Universal <++= (resourceDirectory in Compile ) map { (resourceDir : File ) =>
5152 val src = resourceDir / " docs"
@@ -64,16 +65,18 @@ daemonUser in Docker := dockerUser
6465
6566daemonGroup in Docker := dockerGroup
6667
67- dockerBaseImage := " frolvlad/alpine-oraclejdk8 "
68+ dockerBaseImage := " develar/java "
6869
6970dockerCommands := dockerCommands.value.flatMap {
7071 case cmd@ Cmd (" WORKDIR" , _) => List (cmd,
7172 Cmd (" RUN" , installAll)
7273 )
7374 case cmd@ (Cmd (" ADD" , " opt /opt" )) => List (cmd,
7475 Cmd (" RUN" , " mv /opt/docker/docs /docs" ),
75- Cmd (" RUN" , " adduser -u 2004 -D docker " ),
76+ Cmd (" RUN" , s " adduser -u 2004 -D $dockerUser " ),
7677 ExecCmd (" RUN" , Seq (" chown" , " -R" , s " $dockerUser: $dockerGroup" , " /docs" ): _* )
7778 )
7879 case other => List (other)
7980}
81+
82+ // dockerBuildOptions ++= Seq("--squash")
0 commit comments