Skip to content

Commit 7b38ff3

Browse files
Merge pull request #15 from DNXLabs/version_3.13
Adding support to python 3.13
2 parents 6197afa + 8b78c09 commit 7b38ff3

File tree

7 files changed

+52
-9
lines changed

7 files changed

+52
-9
lines changed

3.10/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apt-get update && \
99
curl \
1010
ca-certificates \
1111
gnupg && \
12-
pip3 install --no-cache-dir --upgrade pip==25.1.1 && \
12+
pip3 install --no-cache-dir --upgrade pip && \
1313
apt-get -q -y clean && \
1414
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
1515

@@ -18,7 +18,7 @@ RUN mkdir -p /etc/apt/keyrings && \
1818
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 && \
1919
apt-get update && \
2020
apt-get install -y nodejs && \
21-
npm install -g serverless@3.36.0 && \
21+
npm install -g serverless@3.40.0 && \
2222
npm install -g [email protected] && \
2323
apt-get -q -y clean && \
2424
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*

3.11/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apt-get update && \
99
curl \
1010
ca-certificates \
1111
gnupg && \
12-
pip3 install --no-cache-dir --upgrade pip==25.1.1 && \
12+
pip3 install --no-cache-dir --upgrade pip && \
1313
apt-get -q -y clean && \
1414
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
1515

@@ -18,7 +18,7 @@ RUN mkdir -p /etc/apt/keyrings && \
1818
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 && \
1919
apt-get update && \
2020
apt-get install -y nodejs && \
21-
npm install -g serverless@3.36.0 && \
21+
npm install -g serverless@3.40.0 && \
2222
npm install -g [email protected] && \
2323
apt-get -q -y clean && \
2424
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*

3.12/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apt-get update && \
99
curl \
1010
ca-certificates \
1111
gnupg && \
12-
pip3 install --no-cache-dir --upgrade pip==25.1.1 && \
12+
pip3 install --no-cache-dir --upgrade pip && \
1313
apt-get -q -y clean && \
1414
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
1515

@@ -18,7 +18,7 @@ RUN mkdir -p /etc/apt/keyrings && \
1818
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 && \
1919
apt-get update && \
2020
apt-get install -y nodejs && \
21-
npm install -g serverless@3.36.0 && \
21+
npm install -g serverless@3.40.0 && \
2222
npm install -g [email protected] && \
2323
apt-get -q -y clean && \
2424
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*

3.13/Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM python:3.13-slim-bookworm
2+
3+
RUN apt-get update && \
4+
apt-get install -y \
5+
wget \
6+
zip \
7+
unzip \
8+
git \
9+
curl \
10+
ca-certificates \
11+
gnupg && \
12+
pip3 install --no-cache-dir --upgrade pip && \
13+
apt-get -q -y clean && \
14+
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
15+
16+
RUN mkdir -p /etc/apt/keyrings && \
17+
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
18+
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 && \
19+
apt-get update && \
20+
apt-get install -y nodejs && \
21+
npm install -g [email protected] && \
22+
npm install -g [email protected] && \
23+
apt-get -q -y clean && \
24+
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
25+
26+
WORKDIR /work
27+
28+
ENTRYPOINT ["/bin/sh"]

3.9/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apt-get update && \
99
curl \
1010
ca-certificates \
1111
gnupg && \
12-
pip3 install --no-cache-dir --upgrade pip==25.1.1 && \
12+
pip3 install --no-cache-dir --upgrade pip && \
1313
apt-get -q -y clean && \
1414
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
1515

@@ -18,7 +18,7 @@ RUN mkdir -p /etc/apt/keyrings && \
1818
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 && \
1919
apt-get update && \
2020
apt-get install -y nodejs && \
21-
npm install -g serverless@3.36.0 && \
21+
npm install -g serverless@3.40.0 && \
2222
npm install -g [email protected] && \
2323
apt-get -q -y clean && \
2424
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ build:
2525
--build-arg base_image=python:3.12-slim-bookworm \
2626
-t ${REPO}:3.12-${IMAGE_TAG} \
2727
./3.12/.
28+
29+
# Python 3.13
30+
docker build \
31+
--build-arg base_image=python:3.13-slim-bookworm \
32+
-t ${REPO}:3.13-${IMAGE_TAG} \
33+
./3.13/.
2834
push:
2935
echo "Push specific tag/release"
3036

@@ -38,4 +44,7 @@ push:
3844
docker push ${REPO}:3.11-${IMAGE_TAG}
3945

4046
# Python 3.12
41-
docker push ${REPO}:3.12-${IMAGE_TAG}
47+
docker push ${REPO}:3.12-${IMAGE_TAG}
48+
49+
# Python 3.13
50+
docker push ${REPO}:3.13-${IMAGE_TAG}

test/build-images.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ docker build \
3232
-t ${DOCKER_REPO}:3.12-${DOCKER_TAG} \
3333
..
3434

35+
echo "Building Python 3.13..."
36+
docker build \
37+
-f ../3.13/Dockerfile \
38+
-t ${DOCKER_REPO}:3.13-${DOCKER_TAG} \
39+
..
40+
3541
echo "All builds completed successfully!"
3642

3743
# List the built images

0 commit comments

Comments
 (0)