Skip to content

Commit 8ccb111

Browse files
authored
Merge pull request #878 from cmizzi/patch-1
[1.22] Update Dockerfile to use JDK 17
2 parents 3869401 + 066080a commit 8ccb111

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Dockerfile

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ FROM node:18-bullseye
22

33
RUN npm install -g svg2img @bubblewrap/cli
44

5-
RUN apt update && apt install -y openjdk-11-jre openjdk-11-jdk lib32stdc++6 lib32z1
5+
RUN set -xe \
6+
&& apt update \
7+
&& apt install -y openjdk-17-jre openjdk-17-jdk lib32stdc++6 lib32z1 \
8+
&& rm -rf /var/lib/apt/lists/*
69

7-
RUN mkdir -p /root/.bubblewrap && \
8-
echo '{ "jdkPath": "/usr/lib/jvm/java-11-openjdk-amd64", "androidSdkPath": "" }' > /root/.bubblewrap/config.json
10+
RUN set -xe \
11+
&& mkdir -p /root/.bubblewrap \
12+
&& echo '{ "jdkPath": "/usr/lib/jvm/java-17-openjdk-amd64", "androidSdkPath": "" }' > /root/.bubblewrap/config.json
913

1014
RUN yes | bubblewrap doctor
1115

packages/cli/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ Information on the signature fingerprints for the application. Use to generate t
464464

465465
## Manually setting up the Environment
466466

467-
### Get the Java Development Kit (JDK) 11.
467+
### Get the Java Development Kit (JDK) 17.
468468
The Android Command line tools requires the correct version of the JDK to run. To prevent version
469469
conflicts with a JDK version that is already installed, Bubblewrap uses a JDK that can unzipped in
470470
a separate folder.

0 commit comments

Comments
 (0)