-
Notifications
You must be signed in to change notification settings - Fork 5
Adding support to python 3.13 #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ RUN apt-get update && \ | |
| curl \ | ||
| ca-certificates \ | ||
| gnupg && \ | ||
| pip3 install --no-cache-dir --upgrade pip==25.1.1 && \ | ||
| pip3 install --no-cache-dir --upgrade pip && \ | ||
| apt-get -q -y clean && \ | ||
| rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* | ||
|
|
||
|
|
@@ -18,7 +18,7 @@ RUN mkdir -p /etc/apt/keyrings && \ | |
| echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \ | ||
| apt-get update && \ | ||
| apt-get install -y nodejs && \ | ||
| npm install -g serverless@3.36.0 && \ | ||
| npm install -g serverless@3.40.0 && \ | ||
| npm install -g [email protected] && \ | ||
| apt-get -q -y clean && \ | ||
| rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ RUN apt-get update && \ | |
| curl \ | ||
| ca-certificates \ | ||
| gnupg && \ | ||
| pip3 install --no-cache-dir --upgrade pip==25.1.1 && \ | ||
| pip3 install --no-cache-dir --upgrade pip && \ | ||
| apt-get -q -y clean && \ | ||
| rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* | ||
|
|
||
|
|
@@ -18,7 +18,7 @@ RUN mkdir -p /etc/apt/keyrings && \ | |
| echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \ | ||
| apt-get update && \ | ||
| apt-get install -y nodejs && \ | ||
| npm install -g serverless@3.36.0 && \ | ||
| npm install -g serverless@3.40.0 && \ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Serverless Framework update from 3.36.0 to 3.40.0 is good and brings improvements. However, all Dockerfiles in this PR have the same pip version issue (25.1.1) that should be addressed consistently across all Python versions. |
||
| npm install -g [email protected] && \ | ||
| apt-get -q -y clean && \ | ||
| rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ RUN apt-get update && \ | |
| curl \ | ||
| ca-certificates \ | ||
| gnupg && \ | ||
| pip3 install --no-cache-dir --upgrade pip==25.1.1 && \ | ||
| pip3 install --no-cache-dir --upgrade pip && \ | ||
| apt-get -q -y clean && \ | ||
| rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* | ||
|
|
||
|
|
@@ -18,7 +18,7 @@ RUN mkdir -p /etc/apt/keyrings && \ | |
| echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \ | ||
| apt-get update && \ | ||
| apt-get install -y nodejs && \ | ||
| npm install -g serverless@3.36.0 && \ | ||
| npm install -g serverless@3.40.0 && \ | ||
| npm install -g [email protected] && \ | ||
| apt-get -q -y clean && \ | ||
| rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| FROM python:3.13-slim-bookworm | ||
|
|
||
| RUN apt-get update && \ | ||
| apt-get install -y \ | ||
| wget \ | ||
| zip \ | ||
| unzip \ | ||
| git \ | ||
| curl \ | ||
| ca-certificates \ | ||
| gnupg && \ | ||
| pip3 install --no-cache-dir --upgrade pip && \ | ||
| apt-get -q -y clean && \ | ||
| rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* | ||
|
|
||
| RUN mkdir -p /etc/apt/keyrings && \ | ||
| curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \ | ||
| echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \ | ||
| apt-get update && \ | ||
| apt-get install -y nodejs && \ | ||
| npm install -g [email protected] && \ | ||
| npm install -g [email protected] && \ | ||
| apt-get -q -y clean && \ | ||
| rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* | ||
|
|
||
| WORKDIR /work | ||
|
|
||
| ENTRYPOINT ["/bin/sh"] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛑 Critical Missing Update: The |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ RUN apt-get update && \ | |
| curl \ | ||
| ca-certificates \ | ||
| gnupg && \ | ||
| pip3 install --no-cache-dir --upgrade pip==25.1.1 && \ | ||
| pip3 install --no-cache-dir --upgrade pip && \ | ||
| apt-get -q -y clean && \ | ||
| rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* | ||
|
|
||
|
|
@@ -18,7 +18,7 @@ RUN mkdir -p /etc/apt/keyrings && \ | |
| echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \ | ||
| apt-get update && \ | ||
| apt-get install -y nodejs && \ | ||
| npm install -g serverless@3.36.0 && \ | ||
| npm install -g serverless@3.40.0 && \ | ||
| npm install -g [email protected] && \ | ||
| apt-get -q -y clean && \ | ||
| rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,12 @@ docker build \ | |
| -t ${DOCKER_REPO}:3.12-${DOCKER_TAG} \ | ||
| .. | ||
|
|
||
| echo "Building Python 3.13..." | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good addition of Python 3.13 build to the test script. This ensures the new Docker image gets built and tested along with the existing versions. The formatting and structure are consistent with the existing build commands. |
||
| docker build \ | ||
| -f ../3.13/Dockerfile \ | ||
| -t ${DOCKER_REPO}:3.13-${DOCKER_TAG} \ | ||
| .. | ||
|
|
||
| echo "All builds completed successfully!" | ||
|
|
||
| # List the built images | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good update to Serverless Framework from 3.36.0 to 3.40.0. This brings bug fixes and improvements. However, consider the same pip version issue that exists in this file as well.