Sitelet https://github.com/cytopia/docker-mypy/commit/5f39503f75cd4f911825875a67cc80688b03ae19
Skip to content

Commit 5f39503

Browse files
committed
Add python3.14
1 parent f33fba8 commit 5f39503

9 files changed

Lines changed: 27 additions & 42 deletions

‎.github/workflows/params.yml‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ env:
1818
"latest",
1919
2020
"MYPY-latest PYTHON-latest",
21-
"MYPY-latest PYTHON-3.10",
22-
"MYPY-latest PYTHON-3.9",
23-
"MYPY-latest PYTHON-3.8",
24-
"MYPY-latest PYTHON-3.7",
25-
"MYPY-latest PYTHON-3.6",
21+
"MYPY-latest PYTHON-3.14",
22+
"MYPY-latest PYTHON-3.13",
23+
"MYPY-latest PYTHON-3.12",
24+
"MYPY-latest PYTHON-3.11",
25+
"MYPY-latest PYTHON-3.10"
2626
2727
"MYPY-0 PYTHON-latest",
28-
"MYPY-0 PYTHON-3.10",
29-
"MYPY-0 PYTHON-3.9",
30-
"MYPY-0 PYTHON-3.8",
31-
"MYPY-0 PYTHON-3.7",
32-
"MYPY-0 PYTHON-3.6"
28+
"MYPY-0 PYTHON-3.14",
29+
"MYPY-0 PYTHON-3.13",
30+
"MYPY-0 PYTHON-3.12",
31+
"MYPY-0 PYTHON-3.11",
32+
"MYPY-0 PYTHON-3.10"
3333
],
3434
"FLAVOUR": ["latest"],
3535
"ARCH": ["linux/amd64", "linux/386", "linux/arm64", "linux/arm/v7", "linux/arm/v6", "linux/ppc64le", "linux/s390x"]

‎.github/workflows/release-drafter.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
# Drafts your next Release notes as Pull Requests are merged into "master"
15-
- uses: release-drafter/release-drafter@v5
15+
- uses: release-drafter/release-drafter@v6
1616
with:
1717
publish: true
1818
env:

‎.github/workflows/repository.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v6
1919

2020
- name: Sync labels
2121
uses: micnncim/action-label-syncer@v1

‎Dockerfiles/Dockerfile.latest‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Dockerfile.python3.10
1+
Dockerfile.python3.14

‎Dockerfiles/Dockerfile.python3.10‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
FROM alpine:3.16 as builder
1+
FROM python:3.10-alpine3.23 as builder
22

33
RUN set -eux \
44
&& apk add --no-cache \
55
bc \
66
gcc \
77
musl-dev \
88
py3-pip \
9-
python3 \
109
python3-dev
1110

1211
ARG MYPY_VERSION=latest
@@ -23,7 +22,7 @@ RUN set -eux \
2322
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
2423

2524

26-
FROM alpine:3.16 as production
25+
FROM python:3.10-alpine3.23 as production
2726
# https://github.com/opencontainers/image-spec/blob/master/annotations.md
2827
#LABEL "org.opencontainers.image.created"=""
2928
#LABEL "org.opencontainers.image.version"=""
@@ -40,8 +39,6 @@ LABEL "org.opencontainers.image.title"="mypy ${MYPY_VERSION}"
4039
LABEL "org.opencontainers.image.description"="mypy ${MYPY_VERSION}"
4140

4241
RUN set -eux \
43-
&& apk add --no-cache \
44-
python3 \
4542
&& ln -sf /usr/bin/python3 /usr/bin/python \
4643
&& find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf \
4744
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
FROM alpine:3.9 as builder
1+
FROM python:3.11-alpine3.23 as builder
22

33
RUN set -eux \
44
&& apk add --no-cache \
55
bc \
66
gcc \
77
musl-dev \
88
py3-pip \
9-
python3 \
109
python3-dev
1110

1211
ARG MYPY_VERSION=latest
@@ -23,7 +22,7 @@ RUN set -eux \
2322
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
2423

2524

26-
FROM alpine:3.9 as production
25+
FROM python:3.11-alpine3.23 as production
2726
# https://github.com/opencontainers/image-spec/blob/master/annotations.md
2827
#LABEL "org.opencontainers.image.created"=""
2928
#LABEL "org.opencontainers.image.version"=""
@@ -40,12 +39,10 @@ LABEL "org.opencontainers.image.title"="mypy ${MYPY_VERSION}"
4039
LABEL "org.opencontainers.image.description"="mypy ${MYPY_VERSION}"
4140

4241
RUN set -eux \
43-
&& apk add --no-cache \
44-
python3 \
4542
&& ln -sf /usr/bin/python3 /usr/bin/python \
4643
&& find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf \
4744
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
48-
COPY --from=builder /usr/lib/python3.6/site-packages/ /usr/lib/python3.6/site-packages/
45+
COPY --from=builder /usr/lib/python3.11/site-packages/ /usr/lib/python3.11/site-packages/
4946
COPY --from=builder /usr/bin/mypy /usr/bin/mypy
5047
WORKDIR /data
5148
ENTRYPOINT ["mypy"]
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
FROM alpine:3.10 as builder
1+
FROM python:3.12-alpine3.23 as builder
22

33
RUN set -eux \
44
&& apk add --no-cache \
55
bc \
66
gcc \
77
musl-dev \
88
py3-pip \
9-
python3 \
109
python3-dev
1110

1211
ARG MYPY_VERSION=latest
@@ -23,7 +22,7 @@ RUN set -eux \
2322
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
2423

2524

26-
FROM alpine:3.10 as production
25+
FROM python:3.12-alpine3.23 as production
2726
# https://github.com/opencontainers/image-spec/blob/master/annotations.md
2827
#LABEL "org.opencontainers.image.created"=""
2928
#LABEL "org.opencontainers.image.version"=""
@@ -40,12 +39,10 @@ LABEL "org.opencontainers.image.title"="mypy ${MYPY_VERSION}"
4039
LABEL "org.opencontainers.image.description"="mypy ${MYPY_VERSION}"
4140

4241
RUN set -eux \
43-
&& apk add --no-cache \
44-
python3 \
4542
&& ln -sf /usr/bin/python3 /usr/bin/python \
4643
&& find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf \
4744
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
48-
COPY --from=builder /usr/lib/python3.7/site-packages/ /usr/lib/python3.7/site-packages/
45+
COPY --from=builder /usr/lib/python3.12/site-packages/ /usr/lib/python3.12/site-packages/
4946
COPY --from=builder /usr/bin/mypy /usr/bin/mypy
5047
WORKDIR /data
5148
ENTRYPOINT ["mypy"]
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
FROM alpine:3.13 as builder
1+
FROM python:3.13-alpine3.23 as builder
22

33
RUN set -eux \
44
&& apk add --no-cache \
55
bc \
66
gcc \
77
musl-dev \
88
py3-pip \
9-
python3 \
109
python3-dev
1110

1211
ARG MYPY_VERSION=latest
@@ -23,7 +22,7 @@ RUN set -eux \
2322
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
2423

2524

26-
FROM alpine:3.13 as production
25+
FROM python:3.13-alpine3.23 as production
2726
# https://github.com/opencontainers/image-spec/blob/master/annotations.md
2827
#LABEL "org.opencontainers.image.created"=""
2928
#LABEL "org.opencontainers.image.version"=""
@@ -40,12 +39,10 @@ LABEL "org.opencontainers.image.title"="mypy ${MYPY_VERSION}"
4039
LABEL "org.opencontainers.image.description"="mypy ${MYPY_VERSION}"
4140

4241
RUN set -eux \
43-
&& apk add --no-cache \
44-
python3 \
4542
&& ln -sf /usr/bin/python3 /usr/bin/python \
4643
&& find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf \
4744
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
48-
COPY --from=builder /usr/lib/python3.8/site-packages/ /usr/lib/python3.8/site-packages/
45+
COPY --from=builder /usr/lib/python3.13/site-packages/ /usr/lib/python3.13/site-packages/
4946
COPY --from=builder /usr/bin/mypy /usr/bin/mypy
5047
WORKDIR /data
5148
ENTRYPOINT ["mypy"]
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
FROM alpine:3.15 as builder
1+
FROM python:3.14-alpine3.23 as builder
22

33
RUN set -eux \
44
&& apk add --no-cache \
55
bc \
66
gcc \
77
musl-dev \
88
py3-pip \
9-
python3 \
109
python3-dev
1110

1211
ARG MYPY_VERSION=latest
@@ -23,7 +22,7 @@ RUN set -eux \
2322
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
2423

2524

26-
FROM alpine:3.15 as production
25+
FROM python:3.14-alpine3.23 as production
2726
# https://github.com/opencontainers/image-spec/blob/master/annotations.md
2827
#LABEL "org.opencontainers.image.created"=""
2928
#LABEL "org.opencontainers.image.version"=""
@@ -40,12 +39,10 @@ LABEL "org.opencontainers.image.title"="mypy ${MYPY_VERSION}"
4039
LABEL "org.opencontainers.image.description"="mypy ${MYPY_VERSION}"
4140

4241
RUN set -eux \
43-
&& apk add --no-cache \
44-
python3 \
4542
&& ln -sf /usr/bin/python3 /usr/bin/python \
4643
&& find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf \
4744
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
48-
COPY --from=builder /usr/lib/python3.9/site-packages/ /usr/lib/python3.9/site-packages/
45+
COPY --from=builder /usr/lib/python3.14/site-packages/ /usr/lib/python3.14/site-packages/
4946
COPY --from=builder /usr/bin/mypy /usr/bin/mypy
5047
WORKDIR /data
5148
ENTRYPOINT ["mypy"]

0 commit comments

Comments
 (0)