|
1 | | -FROM python:3.12.0-slim-bullseye |
| 1 | +FROM python:3.13.3-slim-bookworm |
2 | 2 | ARG BUILD_DATE |
3 | 3 | ARG BUILD_URL |
4 | 4 | ARG GIT_URL |
5 | 5 | ARG GIT_COMMIT |
6 | 6 | ARG VERSION |
7 | 7 | 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" |
19 | 19 | ENV DEBIAN_FRONTEND=noninteractive LANG=C.UTF-8 |
20 | 20 | 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/* |
24 | 24 | 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 |
31 | 31 | RUN echo /opt/instantclient > /etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig |
32 | 32 | COPY requirements.txt /tmp |
33 | 33 | 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/* |
35 | 35 | RUN python -V |
36 | 36 | RUN pip freeze |
37 | 37 | RUN useradd -r -s /bin/bash -c "application user" -d /app -u 1001 -g 100 -m appuser |
|
0 commit comments