@@ -386,7 +386,7 @@ ENV PYTHON_39_VERSION="3.9.16"
386
386
387
387
RUN set -ex \
388
388
&& 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
390
390
RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_39_VERSION; rm -rf /tmp/*
391
391
RUN pyenv global $PYTHON_39_VERSION
392
392
RUN set -ex \
@@ -430,7 +430,7 @@ RUN rbenv install $RUBY_27_VERSION; rm -rf /tmp/*; rbenv global $RUBY_27_VERSION
430
430
431
431
# Php 7.4
432
432
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
434
434
RUN phpenv install $PHP_74_VERSION; rm -rf /tmp/*; phpenv global $PHP_74_VERSION
435
435
RUN echo "memory_limit = 1G;" >> "/root/.phpenv/versions/$PHP_74_VERSION/etc/conf.d/memory.ini"
436
436
@@ -443,14 +443,13 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin -
443
443
FROM runtimes_3 AS aarch64_v2
444
444
445
445
# 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" ]
455
454
456
455
# =======================End of layer: aarch64_v2 =================
0 commit comments