Skip to content

Commit

Permalink
VZ-11493: Use distroless Java 17 base image (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredtibbitts authored Nov 28, 2023
1 parent 3874ea5 commit 18c3c14
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions quarkus/container/Dockerfile_verrazzano
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,13 @@ RUN chmod -R g+rwX /opt/keycloak
RUN (mkdir /opt/xa && \
chmod -R g+rwX /opt/xa)

FROM ghcr.io/oracle/oraclelinux:8-slim
FROM ghcr.io/verrazzano/ol8-java17:v0.0.1-20231127201043-98de115c
ENV LANG en_US.UTF-8

COPY --from=build_env --chown=1000:0 /opt/keycloak /opt/keycloak
COPY --from=build_env --chown=1000:0 /opt/xa /opt/xa

RUN microdnf update -y && \
microdnf install -y --nodocs java-11-openjdk-headless glibc-langpack-en && \
microdnf install -y python38 python38-pip && \
# remove the previously installed setuptools info
rm -rf /usr/lib/python3.8/site-packages/setuptools-41.6.0.dist-info && \
# install the upgraded setuptools
pip3 install setuptools --upgrade && \
rm -rf /usr/lib/python3.6 && \
microdnf clean all && rm -rf /var/cache/yum/* && \
echo "keycloak:x:0:root" >> /etc/group && \
RUN echo "keycloak:x:0:root" >> /etc/group && \
echo "keycloak:x:1000:0:keycloak user:/opt/keycloak:/sbin/nologin" >> /etc/passwd

# Narayana JTA creates ObjectStore under the directory derived from system property user.dir, so make /opt/xa as working directory
Expand Down

0 comments on commit 18c3c14

Please sign in to comment.