@@ -386,7 +386,7 @@ ENV PYTHON_39_VERSION="3.9.16"
386386
387387RUN 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
390390RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_39_VERSION; rm -rf /tmp/*
391391RUN pyenv global $PYTHON_39_VERSION
392392RUN 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
432432ENV 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
434434RUN phpenv install $PHP_74_VERSION; rm -rf /tmp/*; phpenv global $PHP_74_VERSION
435435RUN 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 -
443443FROM 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 =================
0 commit comments