Skip to content

Commit 29c71b3

Browse files
committed
Updated the dockerfile to use Python 3.12, dropped support for 3.7, added support for 3.12
1 parent 34bf8a2 commit 29c71b3

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/python3.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
strategy:
5454
fail-fast: false
5555
matrix:
56-
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
56+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
5757

5858
steps:
5959
- uses: actions/checkout@v3
@@ -77,7 +77,7 @@ jobs:
7777
strategy:
7878
fail-fast: false
7979
matrix:
80-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
80+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
8181
image:
8282
- mariadb:10.5
8383
- mariadb:10.9

Dockerfile

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
FROM debian:stable-slim
1+
FROM python:3.12-bookworm
22
ENV LANG C.UTF-8
33
RUN apt update && \
4-
apt upgrade -y && \
5-
apt install python3 python3-pip default-libmysqlclient-dev build-essential -y && \
6-
rm -rf /var/cache/apt/archives/*.deb /var/lib/apt/lists/*
4+
apt install default-libmysqlclient-dev build-essential -y && \
5+
rm -rf /var/cache/apt/archives/*.deb /var/lib/apt/lists/*
76

87
WORKDIR /app
98
COPY requirements.txt .
109
RUN pip3 install -r requirements.txt && \
11-
pip3 install pymysql mysqlclient && \
12-
pip3 freeze
10+
pip3 install pymysql mysqlclient && \
11+
pip3 freeze
1312
COPY . .
1413
ENTRYPOINT ["python3", "-m", "matebot_core"]
1514
CMD ["auto"]

0 commit comments

Comments
 (0)