Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VZ-11493: Use distroless Java 17 base image #26

Merged
merged 4 commits into from
Nov 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading