Skip to content
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
21 changes: 9 additions & 12 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,32 @@
# see https://hub.docker.com/_/eclipse-temurin/tags
ARG RANGER_BASE_JAVA_VERSION=8

# Ubuntu 22.04 LTS
FROM eclipse-temurin:${RANGER_BASE_JAVA_VERSION}-jdk-jammy
# Ubuntu 26.04 LTS
FROM eclipse-temurin:${RANGER_BASE_JAVA_VERSION}-jdk-resolute

# Install packages
RUN apt update -q \
&& DEBIAN_FRONTEND="noninteractive" apt install -y --no-install-recommends \
bc \
curl \
iputils-ping \
pdsh \
python3 \
python3-pip \
python-is-python3 \
ssh \
tzdata \
vim \
xmlstarlet \
krb5-user \
&& apt clean

# Install Python modules
RUN pip install apache-ranger requests \
&& rm -rf ~/.cache/pip
python3-venv \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*

# Set environment variables
ENV RANGER_DIST=/home/ranger/dist
ENV RANGER_SCRIPTS=/home/ranger/scripts
ENV RANGER_HOME=/opt/ranger
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV PATH="/opt/venv/bin:${JAVA_HOME}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

RUN python3 -m venv /opt/venv
RUN /opt/venv/bin/pip install apache-ranger
Comment thread
mneethiraj marked this conversation as resolved.

# create directories and setup perms
RUN mkdir -p ${RANGER_DIST} ${RANGER_SCRIPTS} ${RANGER_HOME} && \
Expand Down