Skip to content

Commit 811a6b5

Browse files
authored
Fix jdk build (#59)
* Fix jdk build * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile
1 parent f3c3009 commit 811a6b5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:stable-slim
1+
FROM openjdk:8
22

33
LABEL Description="This image provides a base Android development environment for React Native, and may be used to run tests."
44

@@ -16,21 +16,18 @@ ENV ADB_INSTALL_TIMEOUT=10
1616
ENV ANDROID_HOME=/opt/android
1717
ENV ANDROID_SDK_HOME=${ANDROID_HOME}
1818
ENV ANDROID_NDK=/opt/ndk/android-ndk-r$NDK_VERSION
19-
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
2019

2120
ENV PATH=${ANDROID_NDK}:${ANDROID_HOME}/emulator:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools:/opt/buck/bin/:${PATH}
2221

2322
# Install system dependencies
24-
# See https://github.com/debuerreotype/docker-debian-artifacts/issues/24
25-
RUN mkdir -p /usr/share/man/man1 \
26-
&& apt-get update -qq && apt-get install -qq -y --no-install-recommends \
23+
RUN apt update -qq && apt install -qq -y --no-install-recommends \
2724
apt-transport-https \
2825
curl \
2926
build-essential \
3027
file \
3128
git \
29+
openjdk-8-jre \
3230
gnupg2 \
33-
openjdk-8-jdk \
3431
python \
3532
openssh-client \
3633
unzip \

0 commit comments

Comments
 (0)