Skip to content

Commit 1d1cc22

Browse files
authored
Merge pull request #759 from hanfangluo/master
Apply arm image updates.
2 parents 2b4c6a3 + e805638 commit 1d1cc22

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

Diff for: al/aarch64/standard/2.0/Dockerfile

+10-11
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ ENV PYTHON_39_VERSION="3.9.16"
386386

387387
RUN set -ex \
388388
&& ls -la
389-
RUN cat tools/runtime_configs/python/$PYTHON_39_VERSION > /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_39_VERSION
389+
COPY tools/runtime_configs/python/$PYTHON_39_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_39_VERSION
390390
RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_39_VERSION; rm -rf /tmp/*
391391
RUN pyenv global $PYTHON_39_VERSION
392392
RUN set -ex \
@@ -430,7 +430,7 @@ RUN rbenv install $RUBY_27_VERSION; rm -rf /tmp/*; rbenv global $RUBY_27_VERSION
430430

431431
#Php 7.4
432432
ENV PHP_74_VERSION="7.4.33"
433-
RUN cat tools/runtime_configs/php/$PHP_74_VERSION > /root/.phpenv/plugins/php-build/share/php-build/definitions/$PHP_74_VERSION
433+
COPY tools/runtime_configs/php/$PHP_74_VERSION /root/.phpenv/plugins/php-build/share/php-build/definitions/$PHP_74_VERSION
434434
RUN phpenv install $PHP_74_VERSION; rm -rf /tmp/*; phpenv global $PHP_74_VERSION
435435
RUN echo "memory_limit = 1G;" >> "/root/.phpenv/versions/$PHP_74_VERSION/etc/conf.d/memory.ini"
436436

@@ -443,14 +443,13 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin -
443443
FROM runtimes_3 AS aarch64_v2
444444

445445
# Configure SSH
446-
RUN cat ssh_config > /root/.ssh/config
447-
RUN mkdir -p /codebuild/image/config && cat runtimes.yml > /codebuild/image/config/runtimes.yml
448-
RUN cat dockerd-entrypoint.sh > /usr/local/bin/dockerd-entrypoint.sh
449-
RUN chmod +x /usr/local/bin/dockerd-entrypoint.sh
450-
RUN cat legal/THIRD_PARTY_LICENSES.txt > /usr/share/doc/THIRD_PARTY_LICENSES.txt
451-
RUN cat legal/bill_of_material.txt > /usr/share/doc/bill_of_material.txt
452-
RUN cat amazon-ssm-agent.json > /etc/amazon/ssm/amazon-ssm-agent.json
453-
454-
ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh"]
446+
COPY ssh_config /root/.ssh/config
447+
COPY runtimes.yml /codebuild/image/config/runtimes.yml
448+
COPY dockerd-entrypoint.sh /usr/local/bin/
449+
COPY legal/THIRD_PARTY_LICENSES.txt /usr/share/doc
450+
COPY legal/bill_of_material.txt /usr/share/doc
451+
COPY amazon-ssm-agent.json /etc/amazon/ssm/
452+
453+
ENTRYPOINT ["dockerd-entrypoint.sh"]
455454

456455
#=======================End of layer: aarch64_v2 =================

Diff for: al/aarch64/standard/3.0/Dockerfile

+8-11
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
# See the License for the specific language governing permissions and limitations under the License.
1111

1212
FROM public.ecr.aws/amazonlinux/amazonlinux:2023 AS core
13-
{{{ imagebuilder:environments }}}
14-
{{{ imagebuilder:components }}}
1513

1614
# Install git, SSH, php, and other utilities
1715
RUN set -ex \
@@ -533,14 +531,13 @@ RUN goenv global $GOLANG_20_VERSION
533531
RUN dotnet new globaljson --force --sdk-version $DOTNET_6_GLOBAL_JSON_SDK_VERSION --roll-forward feature
534532

535533
# Configure SSH
536-
RUN cat ssh_config > /root/.ssh/config
537-
RUN mkdir -p /codebuild/image/config && cp runtimes.yml /codebuild/image/config/runtimes.yml
538-
RUN cat dockerd-entrypoint.sh > /usr/local/bin/dockerd-entrypoint.sh
539-
RUN chmod +x /usr/local/bin/dockerd-entrypoint.sh
540-
RUN cat legal/THIRD_PARTY_LICENSES.txt > /usr/share/doc/THIRD_PARTY_LICENSES.txt
541-
RUN cat legal/bill_of_material.txt > /usr/share/doc/bill_of_material.txt
542-
RUN cat amazon-ssm-agent.json > /etc/amazon/ssm/amazon-ssm-agent.json
543-
544-
ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh"]
534+
COPY ssh_config /root/.ssh/config
535+
COPY runtimes.yml /codebuild/image/config/runtimes.yml
536+
COPY dockerd-entrypoint.sh /usr/local/bin/
537+
COPY legal/THIRD_PARTY_LICENSES.txt /usr/share/doc
538+
COPY legal/bill_of_material.txt /usr/share/doc
539+
COPY amazon-ssm-agent.json /etc/amazon/ssm/
540+
541+
ENTRYPOINT ["dockerd-entrypoint.sh"]
545542

546543
#=======================End of layer: aarch64_v3 =================

0 commit comments

Comments
 (0)