Skip to content

Commit b4a4ac5

Browse files
authored
bump base image to ubuntu 20.04 (#74)
1 parent dbb9276 commit b4a4ac5

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

Dockerfile

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
FROM ubuntu:18.04
1+
FROM ubuntu:20.04
22

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

5+
ENV DEBIAN_FRONTEND=noninteractive
6+
57
# set default build arguments
68
ARG SDK_VERSION=sdk-tools-linux-4333796.zip
79
ARG ANDROID_BUILD_VERSION=29
@@ -26,35 +28,18 @@ RUN apt update -qq && apt install -qq -y --no-install-recommends \
2628
build-essential \
2729
file \
2830
git \
31+
cmake \
32+
ruby-full \
2933
openjdk-8-jdk \
3034
gnupg2 \
3135
python \
3236
openssh-client \
3337
unzip \
3438
&& rm -rf /var/lib/apt/lists/*;
3539

36-
# install latest Ruby using ruby-install
37-
RUN apt-get update -qq \
38-
&& apt-get install -qq -y --no-install-recommends \
39-
bison \
40-
zlib1g-dev \
41-
libyaml-dev \
42-
libssl-dev \
43-
libgdbm-dev \
44-
libreadline-dev \
45-
libncurses5-dev \
46-
libffi-dev \
47-
&& curl -L https://github.com/postmodern/ruby-install/archive/v0.7.0.tar.gz | tar -zxvf - -C /tmp/ \
48-
&& cd /tmp/ruby-install-* \
49-
&& make install \
50-
&& ruby-install --latest --system --cleanup ruby \
51-
&& gem install bundler -N \
52-
&& rm -rf /var/lib/apt/lists/*
53-
5440
# install nodejs and yarn packages from nodesource and yarn apt sources
55-
RUN echo "deb https://deb.nodesource.com/node_${NODE_VERSION} stretch main" > /etc/apt/sources.list.d/nodesource.list \
41+
RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION} | bash - \
5642
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
57-
&& curl -sS https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
5843
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
5944
&& apt-get update -qq \
6045
&& apt-get install -qq -y --no-install-recommends nodejs yarn \

0 commit comments

Comments
 (0)