1- FROM bellsoft/liberica-openjre-alpine:11.0.13-8
1+ FROM bellsoft/liberica-openjre-alpine:11.0.15
22
33# ===============
44# Alpine packages
55# ===============
66
77RUN apk update \
88 && apk upgrade \
9- && apk add --no-cache openssl py3-pip curl tini py3-cryptography py3-psycopg2 \
10- && apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/v3.15/community py3-grpcio \
11- && apk add --no-cache --virtual build-deps wget git \
9+ && apk add --no-cache openssl python3 curl tini py3-cryptography py3-psycopg2 py3-grpcio \
10+ && apk add --no-cache --virtual .build-deps wget git \
1211 && mkdir -p /usr/java/latest \
1312 && ln -sf /usr/lib/jvm/jre /usr/java/latest/jre
1413
@@ -18,7 +17,7 @@ RUN apk update \
1817
1918# JAR files required to generate OpenID Connect keys
2019ENV CN_VERSION=1.0.0-SNAPSHOT
21- ENV CN_BUILD_DATE='2022-03-23 18:17 '
20+ ENV CN_BUILD_DATE='2022-04-21 10:21 '
2221ENV CN_SOURCE_URL=https://jenkins.jans.io/maven/io/jans/jans-auth-client/${CN_VERSION}/jans-auth-client-${CN_VERSION}-jar-with-dependencies.jar
2322
2423RUN wget -q ${CN_SOURCE_URL} -P /app/javalibs/
@@ -39,14 +38,16 @@ RUN wget -q ${CN_SOURCE_URL} -P /app/javalibs/
3938# ======
4039
4140COPY requirements.txt /app/requirements.txt
42- RUN pip3 install --no-cache-dir -U pip wheel \
43- && pip3 install --no-cache-dir -r /app/requirements.txt
41+ RUN python3 -m ensurepip \
42+ && pip3 install --no-cache-dir -U pip wheel \
43+ && pip3 install --no-cache-dir -r /app/requirements.txt \
44+ && pip3 uninstall -y pip wheel
4445
4546# =======
4647# Cleanup
4748# =======
4849
49- RUN apk del build-deps \
50+ RUN apk del . build-deps \
5051 && rm -rf /var/cache/apk/*
5152
5253# =======
0 commit comments