Skip to content

Commit 39854e1

Browse files
authored
Use Python 3.12 as default Docker base image (#1445)
* Use Python 3.12 as default Docker base image * Add standard OCI labels
1 parent 1e4e87d commit 39854e1

File tree

4 files changed

+19
-14
lines changed

4 files changed

+19
-14
lines changed

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
FROM ghcr.io/abhinavsingh/proxy.py:base as builder
22

3-
LABEL com.abhinavsingh.name="abhinavsingh/proxy.py" \
4-
org.opencontainers.image.title="proxy.py" \
5-
org.opencontainers.image.description="⚡ Fast • 🪶 Lightweight • 0️⃣ Dependency • 🔌 Pluggable • \
3+
LABEL org.opencontainers.image.title="proxy.py" \
4+
org.opencontainers.image.description="💫 Ngrok FRP Alternative • ⚡ Fast • 🪶 Lightweight • 0️⃣ Dependency • 🔌 Pluggable • \
65
😈 TLS interception • 🔒 DNS-over-HTTPS • 🔥 Poor Man's VPN • ⏪ Reverse & ⏩ Forward • \
76
👮🏿 \"Proxy Server\" framework • 🌐 \"Web Server\" framework • ➵ ➶ ➷ ➠ \"PubSub\" framework • \
87
👷 \"Work\" acceptor & executor framework" \
9-
org.opencontainers.url="https://github.com/abhinavsingh/proxy.py" \
8+
org.opencontainers.image.url="https://github.com/abhinavsingh/proxy.py" \
109
org.opencontainers.image.source="https://github.com/abhinavsingh/proxy.py" \
11-
com.abhinavsingh.docker.cmd="docker run -it --rm -p 8899:8899 abhinavsingh/proxy.py" \
1210
org.opencontainers.image.licenses="BSD-3-Clause" \
1311
org.opencontainers.image.authors="Abhinav Singh <mailsforabhinav@gmail.com>" \
14-
org.opencontainers.image.vendor="Abhinav Singh"
12+
org.opencontainers.image.vendor="Abhinav Singh" \
13+
org.opencontainers.image.created="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
14+
org.opencontainers.image.documentation="https://github.com/abhinavsingh/proxy.py#readme" \
15+
org.opencontainers.image.ref.name="abhinavsingh/proxy.py" \
16+
com.abhinavsingh.docker.cmd="docker run -it --rm -p 8899:8899 abhinavsingh/proxy.py"
1517

1618
ENV PYTHONUNBUFFERED 1
1719
ENV PYTHONDONTWRITEBYTECODE 1

DockerfileBase

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
FROM python:3.11-alpine
1+
FROM python:3.12-alpine
22

3-
LABEL com.abhinavsingh.name="abhinavsingh/proxy.py" \
4-
org.opencontainers.image.title="proxy.py" \
5-
org.opencontainers.image.description="⚡ Fast • 🪶 Lightweight • 0️⃣ Dependency • 🔌 Pluggable • \
3+
LABEL org.opencontainers.image.title="proxy.py" \
4+
org.opencontainers.image.description="💫 Ngrok FRP Alternative • ⚡ Fast • 🪶 Lightweight • 0️⃣ Dependency • 🔌 Pluggable • \
65
😈 TLS interception • 🔒 DNS-over-HTTPS • 🔥 Poor Man's VPN • ⏪ Reverse & ⏩ Forward • \
76
👮🏿 \"Proxy Server\" framework • 🌐 \"Web Server\" framework • ➵ ➶ ➷ ➠ \"PubSub\" framework • \
87
👷 \"Work\" acceptor & executor framework" \
9-
org.opencontainers.url="https://github.com/abhinavsingh/proxy.py" \
8+
org.opencontainers.image.url="https://github.com/abhinavsingh/proxy.py" \
109
org.opencontainers.image.source="https://github.com/abhinavsingh/proxy.py" \
11-
com.abhinavsingh.docker.cmd="docker run -it --rm -p 8899:8899 abhinavsingh/proxy.py" \
1210
org.opencontainers.image.licenses="BSD-3-Clause" \
1311
org.opencontainers.image.authors="Abhinav Singh <mailsforabhinav@gmail.com>" \
14-
org.opencontainers.image.vendor="Abhinav Singh"
12+
org.opencontainers.image.vendor="Abhinav Singh" \
13+
org.opencontainers.image.created="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
14+
org.opencontainers.image.documentation="https://github.com/abhinavsingh/proxy.py#readme" \
15+
org.opencontainers.image.ref.name="abhinavsingh/proxy.py" \
16+
com.abhinavsingh.docker.cmd="docker run -it --rm -p 8899:8899 abhinavsingh/proxy.py"
1517

1618
ENV PYTHONUNBUFFERED 1
1719
ENV PYTHONDONTWRITEBYTECODE 1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
[![iOS, iOS Simulator](https://img.shields.io/static/v1?label=tested%20with&message=iOS%20%F0%9F%93%B1%20%7C%20iOS%20Simulator%20%F0%9F%93%B1&color=darkgreen&style=for-the-badge)](https://abhinavsingh.com/proxy-py-a-lightweight-single-file-http-proxy-server-in-python/)
1414

1515
[![pypi version](https://img.shields.io/pypi/v/proxy.py?style=flat-square)](https://pypi.org/project/proxy.py/)
16-
[![Python 3.x](https://img.shields.io/static/v1?label=Python&message=3.6%20%7C%203.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11&color=blue&style=flat-square)](https://www.python.org/)
16+
[![Python 3.x](https://img.shields.io/static/v1?label=Python&message=3.6%20%7C%203.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12&color=blue&style=flat-square)](https://www.python.org/)
1717
[![Checked with mypy](https://img.shields.io/static/v1?label=MyPy&message=checked&color=blue&style=flat-square)](http://mypy-lang.org/)
1818

1919
[![doc](https://img.shields.io/readthedocs/proxypy/latest?style=flat-square&color=darkgreen)](https://proxypy.readthedocs.io/)

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ classifiers =
6666
Programming Language :: Python :: 3.9
6767
Programming Language :: Python :: 3.10
6868
Programming Language :: Python :: 3.11
69+
Programming Language :: Python :: 3.12
6970

7071
Topic :: Internet
7172
Topic :: Internet :: Proxy Servers

0 commit comments

Comments
 (0)