1010# See the License for the specific language governing permissions and limitations under the License.
1111
1212FROM public.ecr.aws/amazonlinux/amazonlinux:2 AS core
13- {{{ imagebuilder:environments }}}
14- {{{ imagebuilder:components }}}
1513
1614# Install git, SSH, and other utilities
1715RUN set -ex \
@@ -264,7 +262,7 @@ ENV PYTHON_PIP_VERSION=21.1.2
264262ENV PYYAML_VERSION=5.4.1
265263ENV DOCKER_COMPOSE_VERSION="1.26.2"
266264
267- RUN cat tools/runtime_configs/python/$PYTHON_37_VERSION > /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_37_VERSION
265+ COPY tools/runtime_configs/python/$PYTHON_37_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_37_VERSION
268266RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_37_VERSION; rm -rf /tmp/*
269267RUN pyenv global $PYTHON_37_VERSION
270268RUN set -ex \
@@ -279,7 +277,7 @@ RUN set -ex \
279277# **************** PHP ****************************************************
280278ENV PHP_73_VERSION="7.3.33"
281279
282- RUN cat tools/runtime_configs/php/$PHP_73_VERSION > /root/.phpenv/plugins/php-build/share/php-build/definitions/$PHP_73_VERSION
280+ COPY tools/runtime_configs/php/$PHP_73_VERSION /root/.phpenv/plugins/php-build/share/php-build/definitions/$PHP_73_VERSION
283281RUN phpenv install $PHP_73_VERSION; rm -rf /tmp/*; phpenv global $PHP_73_VERSION
284282RUN echo "memory_limit = 1G;" >> "/root/.phpenv/versions/$PHP_73_VERSION/etc/conf.d/memory.ini"
285283
@@ -371,7 +369,7 @@ RUN set -ex \
371369# Python 3.8
372370ENV PYTHON_38_VERSION="3.8.16"
373371
374- RUN cat tools/runtime_configs/python/$PYTHON_38_VERSION > /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_38_VERSION
372+ COPY tools/runtime_configs/python/$PYTHON_38_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_38_VERSION
375373RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_38_VERSION; rm -rf /tmp/*
376374RUN pyenv global $PYTHON_38_VERSION
377375RUN set -ex \
0 commit comments