File tree Expand file tree Collapse file tree 1 file changed +6
-21
lines changed Expand file tree Collapse file tree 1 file changed +6
-21
lines changed Original file line number Diff line number Diff line change 1
- FROM ubuntu:18 .04
1
+ FROM ubuntu:20 .04
2
2
3
3
LABEL Description="This image provides a base Android development environment for React Native, and may be used to run tests."
4
4
5
+ ENV DEBIAN_FRONTEND=noninteractive
6
+
5
7
# set default build arguments
6
8
ARG SDK_VERSION=sdk-tools-linux-4333796.zip
7
9
ARG ANDROID_BUILD_VERSION=29
@@ -26,35 +28,18 @@ RUN apt update -qq && apt install -qq -y --no-install-recommends \
26
28
build-essential \
27
29
file \
28
30
git \
31
+ cmake \
32
+ ruby-full \
29
33
openjdk-8-jdk \
30
34
gnupg2 \
31
35
python \
32
36
openssh-client \
33
37
unzip \
34
38
&& rm -rf /var/lib/apt/lists/*;
35
39
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
-
54
40
# 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 - \
56
42
&& 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 - \
58
43
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
59
44
&& apt-get update -qq \
60
45
&& apt-get install -qq -y --no-install-recommends nodejs yarn \
You can’t perform that action at this time.
0 commit comments