10
10
# See the License for the specific language governing permissions and limitations under the License.
11
11
12
12
FROM public.ecr.aws/amazonlinux/amazonlinux:2 AS core
13
- {{{ imagebuilder:environments }}}
14
- {{{ imagebuilder:components }}}
15
13
16
14
# Install git, SSH, and other utilities
17
15
RUN set -ex \
@@ -264,7 +262,7 @@ ENV PYTHON_PIP_VERSION=21.1.2
264
262
ENV PYYAML_VERSION=5.4.1
265
263
ENV DOCKER_COMPOSE_VERSION="1.26.2"
266
264
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
268
266
RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_37_VERSION; rm -rf /tmp/*
269
267
RUN pyenv global $PYTHON_37_VERSION
270
268
RUN set -ex \
@@ -279,7 +277,7 @@ RUN set -ex \
279
277
# **************** PHP ****************************************************
280
278
ENV PHP_73_VERSION="7.3.33"
281
279
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
283
281
RUN phpenv install $PHP_73_VERSION; rm -rf /tmp/*; phpenv global $PHP_73_VERSION
284
282
RUN echo "memory_limit = 1G;" >> "/root/.phpenv/versions/$PHP_73_VERSION/etc/conf.d/memory.ini"
285
283
@@ -371,7 +369,7 @@ RUN set -ex \
371
369
# Python 3.8
372
370
ENV PYTHON_38_VERSION="3.8.16"
373
371
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
375
373
RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_38_VERSION; rm -rf /tmp/*
376
374
RUN pyenv global $PYTHON_38_VERSION
377
375
RUN set -ex \
0 commit comments