File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ARG PYTHON_VERSION=3.14
2+
13FROM amazonlinux:2023
24
35RUN yum -y update && \
46yum -y install \
5- python3.14 \
7+ python${PYTHON_VERSION} \
68rsync \
7- zip
9+ zip
10+
11+ ENV PYTHON_VERSION=${PYTHON_VERSION}
Original file line number Diff line number Diff line change 1- python3.14 -m venv python
1+ python ${PYTHON_VERSION} -m venv python
22source /python/bin/activate
33
44pip install --upgrade pip
Original file line number Diff line number Diff line change 1- requests
1+ requests == 2.33.1
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ $RUNTIME build -t $IMAGE .
66$RUNTIME run -td --name=$CONTAINER $IMAGE
77$RUNTIME cp ./requirements.txt $CONTAINER :/
88
9- $RUNTIME exec -i $CONTAINER /bin/bash < ./docker_install .sh
9+ $RUNTIME exec -i $CONTAINER /bin/bash < ./install .sh
1010$RUNTIME cp $CONTAINER :/tmp/python_layer.zip python_layer.zip
1111$RUNTIME stop $CONTAINER
1212
You can’t perform that action at this time.
0 commit comments