Skip to content

Commit a250aea

Browse files
committed
Upgrade to python 3.13, switch to oracledb
Signed-off-by: Kristian Berg <kristian.berg@tietoevry.com>
1 parent b056d9e commit a250aea

2 files changed

Lines changed: 23 additions & 23 deletions

File tree

Dockerfile

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
FROM python:3.12.0-slim-bullseye
1+
FROM python:3.13.3-slim-bookworm
22
ARG BUILD_DATE
33
ARG BUILD_URL
44
ARG GIT_URL
55
ARG GIT_COMMIT
66
ARG VERSION
77
LABEL maintainer="Kristian Berg <kristian.berg@tietoevry.com>" \
8-
org.opencontainers.image.title="base-python" \
9-
org.opencontainers.image.created=$BUILD_DATE \
10-
org.opencontainers.image.authors="Kristian Berg <kristian.berg@tietoevry.com>" \
11-
org.opencontainers.image.url=$BUILD_URL \
12-
org.opencontainers.image.documentation="https://github.com/evryfs/base-python/" \
13-
org.opencontainers.image.source=$GIT_URL \
14-
org.opencontainers.image.version=$VERSION \
15-
org.opencontainers.image.revision=$GIT_COMMIT \
16-
org.opencontainers.image.vendor="EVRY Financial Services" \
17-
org.opencontainers.image.licenses="proprietary-license" \
18-
org.opencontainers.image.description="Base image for python 3"
8+
org.opencontainers.image.title="base-python" \
9+
org.opencontainers.image.created=$BUILD_DATE \
10+
org.opencontainers.image.authors="Kristian Berg <kristian.berg@tietoevry.com>" \
11+
org.opencontainers.image.url=$BUILD_URL \
12+
org.opencontainers.image.documentation="https://github.com/evryfs/base-python/" \
13+
org.opencontainers.image.source=$GIT_URL \
14+
org.opencontainers.image.version=$VERSION \
15+
org.opencontainers.image.revision=$GIT_COMMIT \
16+
org.opencontainers.image.vendor="Tietoevry BAnking" \
17+
org.opencontainers.image.licenses="proprietary-license" \
18+
org.opencontainers.image.description="Base image for python 3"
1919
ENV DEBIAN_FRONTEND=noninteractive LANG=C.UTF-8
2020
RUN apt-get update && \
21-
apt-get install -y --no-install-recommends libaio1 curl ca-certificates wget vim dnsutils iputils-ping netcat iproute2 net-tools tar gzip bzip2 unzip tzdata lsof psmisc less gcc libstdc++-10-dev && \
22-
apt-get -y clean && \
23-
rm -rf /var/cache/apt /var/lib/apt/lists/* /tmp/* /var/tmp/*
21+
apt-get install -y --no-install-recommends libaio1 curl ca-certificates dnsutils iputils-ping iproute2 net-tools tar gzip bzip2 unzip tzdata lsof psmisc less gcc libstdc++-12-dev && \
22+
apt-get -y clean && \
23+
rm -rf /var/cache/apt /var/lib/apt/lists/* /tmp/* /var/tmp/*
2424
RUN curl -s https://download.oracle.com/otn_software/linux/instantclient/instantclient-basic-linuxx64.zip -o /tmp/instantclient-basic-linuxx64.zip && \
25-
curl -s https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip -o /tmp/instantclient-sdk-linuxx64.zip && \
26-
cd /opt && \
27-
unzip /tmp/instantclient-basic-linuxx64.zip && \
28-
unzip /tmp/instantclient-sdk-linuxx64.zip && \
29-
rm /tmp/*.zip && \
30-
mv instantclient* instantclient
25+
curl -s https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip -o /tmp/instantclient-sdk-linuxx64.zip && \
26+
cd /opt && \
27+
unzip -o /tmp/instantclient-basic-linuxx64.zip && \
28+
unzip -o /tmp/instantclient-sdk-linuxx64.zip && \
29+
rm /tmp/*.zip && \
30+
mv instantclient* instantclient
3131
RUN echo /opt/instantclient > /etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig
3232
COPY requirements.txt /tmp
3333
RUN pip install -r /tmp/requirements.txt
34-
RUN apt-get purge -y gcc libstdc++-10-dev && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
34+
RUN apt-get purge -y gcc libstdc++-12-dev && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
3535
RUN python -V
3636
RUN pip freeze
3737
RUN useradd -r -s /bin/bash -c "application user" -d /app -u 1001 -g 100 -m appuser

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cx_Oracle==8.3.0
1+
oracledb==3.1.0

0 commit comments

Comments
 (0)