11
11
12
12
FROM amazonlinux:2 AS core
13
13
14
- ENV EPEL_REPO="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
15
-
16
14
# Install git, SSH, and other utilities
17
15
RUN set -ex \
18
16
&& yum install -y openssh-clients \
@@ -21,7 +19,7 @@ RUN set -ex \
21
19
&& ssh-keyscan -t rsa,dsa -H github.com >> ~/.ssh/known_hosts \
22
20
&& ssh-keyscan -t rsa,dsa -H bitbucket.org >> ~/.ssh/known_hosts \
23
21
&& chmod 600 ~/.ssh/known_hosts \
24
- && yum install -y $EPEL_REPO \
22
+ && amazon-linux-extras install epel -y \
25
23
&& rpm --import https://download.mono-project.com/repo/xamarin.gpg \
26
24
&& curl https://download.mono-project.com/repo/centos7-stable.repo | tee /etc/yum.repos.d/mono-centos7-stable.repo \
27
25
&& amazon-linux-extras enable corretto8 \
@@ -37,7 +35,8 @@ RUN set -ex \
37
35
ncurses-devel oniguruma-devel openssl openssl-devel perl-DBD-SQLite \
38
36
perl-DBI perl-HTTP-Date perl-IO-Pty-Easy perl-TimeDate perl-YAML-LibYAML \
39
37
postgresql-devel procps-ng python-configobj readline-devel rsync sgml-common \
40
- subversion-perl tar tcl tk vim wget which xfsprogs xmlto xorg-x11-server-Xvfb xz-devel
38
+ subversion-perl tar tcl tk vim wget which xfsprogs xmlto xorg-x11-server-Xvfb xz-devel \
39
+ && rm /etc/yum.repos.d/mono-centos7-stable.repo
41
40
42
41
RUN useradd codebuild-user
43
42
@@ -126,7 +125,7 @@ RUN set -ex \
126
125
ENV PATH="/root/.dotnet/:/root/.dotnet/tools/:$PATH"
127
126
RUN set -ex \
128
127
&& wget -nv -O /usr/local/bin/dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
129
- && chmod +x /usr/local/bin/dotnet-install.sh
128
+ && chmod +x /usr/local/bin/dotnet-install.sh
130
129
131
130
# #nodejs
132
131
ENV N_SRC_DIR="$SRC_DIR/n"
@@ -235,7 +234,7 @@ RUN set -x \
235
234
&& echo "$ANT_DOWNLOAD_SHA512 /var/tmp/apache-ant-$ANT_VERSION-bin.tar.gz" | sha512sum -c - \
236
235
&& tar -xzf /var/tmp/apache-ant-$ANT_VERSION-bin.tar.gz -C /opt \
237
236
&& rm /var/tmp/apache-ant-$ANT_VERSION-bin.tar.gz \
238
- && update-alternatives --install /usr/bin/ant ant /opt/apache-ant-$ANT_VERSION/bin/ant 10000
237
+ && update-alternatives --install /usr/bin/ant ant /opt/apache-ant-$ANT_VERSION/bin/ant 10000
239
238
240
239
RUN set -ex \
241
240
# Install Maven
@@ -294,7 +293,7 @@ RUN set -ex \
294
293
295
294
# **************** NODEJS ****************************************************
296
295
297
- ENV NODE_10_VERSION="10.21 .0"
296
+ ENV NODE_10_VERSION="10.23 .0"
298
297
299
298
RUN n $NODE_10_VERSION && npm install --save-dev -g -f grunt && npm install --save-dev -g -f grunt-cli && npm install --save-dev -g -f webpack \
300
299
&& curl -sSL https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo \
@@ -314,16 +313,16 @@ RUN rbenv install $RUBY_26_VERSION; rm -rf /tmp/*; rbenv global $RUBY_26_VERSION
314
313
# **************** END RUBY *****************************************************
315
314
316
315
# **************** PYTHON *****************************************************
317
- ENV PYTHON_37_VERSION="3.7.7 "
318
- ENV PYTHON_PIP_VERSION=19.3.1
316
+ ENV PYTHON_37_VERSION="3.7.10 "
317
+ ENV PYTHON_PIP_VERSION=20.2.4
319
318
320
319
COPY tools/runtime_configs/python/$PYTHON_37_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_37_VERSION
321
320
RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_37_VERSION; rm -rf /tmp/*
322
321
RUN pyenv global $PYTHON_37_VERSION
323
322
RUN set -ex \
324
323
&& pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
325
324
&& pip3 install --no-cache-dir --upgrade "PyYAML==5.3.1" \
326
- && pip3 install --no-cache-dir --upgrade setuptools wheel aws-sam-cli awscli boto3 pipenv virtualenv
325
+ && pip3 install --no-cache-dir --upgrade setuptools wheel aws-sam-cli awscli boto3 pipenv virtualenv --use-feature=2020-resolver
327
326
328
327
# **************** END PYTHON *****************************************************
329
328
@@ -384,18 +383,18 @@ RUN set -ex \
384
383
&& docker-compose version
385
384
386
385
# Python 3.8
387
- ENV PYTHON_38_VERSION="3.8.3 "
386
+ ENV PYTHON_38_VERSION="3.8.8 "
388
387
389
388
COPY tools/runtime_configs/python/$PYTHON_38_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_38_VERSION
390
389
RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_38_VERSION; rm -rf /tmp/*
391
390
RUN pyenv global $PYTHON_38_VERSION
392
391
RUN set -ex \
393
392
&& pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
394
393
&& pip3 install --no-cache-dir --upgrade "PyYAML==5.3.1" \
395
- && pip3 install --no-cache-dir --upgrade setuptools wheel aws-sam-cli awscli boto3 pipenv virtualenv
394
+ && pip3 install --no-cache-dir --upgrade setuptools wheel aws-sam-cli awscli boto3 pipenv virtualenv --use-feature=2020-resolver
396
395
397
396
# Node 12
398
- ENV NODE_12_VERSION="12.18.0 "
397
+ ENV NODE_12_VERSION="12.19.1 "
399
398
400
399
RUN n $NODE_12_VERSION && npm install --save-dev -g -f grunt && npm install --save-dev -g -f grunt-cli && npm install --save-dev -g -f webpack \
401
400
&& rm -rf /tmp/*
@@ -428,11 +427,11 @@ RUN set -ex \
428
427
&& ln -s ~/.dotnet/tools/dotnet-gitversion /usr/local/bin/gitversion
429
428
430
429
# Ruby 2.7
431
- ENV RUBY_27_VERSION="2.7.1 "
430
+ ENV RUBY_27_VERSION="2.7.2 "
432
431
RUN rbenv install $RUBY_27_VERSION; rm -rf /tmp/*; rbenv global $RUBY_27_VERSION;ruby -v
433
432
434
433
# Golang 14
435
- ENV GOLANG_14_VERSION="1.14.7 "
434
+ ENV GOLANG_14_VERSION="1.14.12 "
436
435
RUN goenv install $GOLANG_14_VERSION; rm -rf /tmp/*; \
437
436
goenv global $GOLANG_14_VERSION
438
437
0 commit comments