fix: 💚 Maybe Fix alpine image
All checks were successful
andreas-personal/jenkins-ssh-docker-agent/pipeline/head This commit looks good

This commit is contained in:
2025-06-06 05:27:43 +02:00
parent 5c7e43445a
commit 16f4ca20a1

View File

@ -15,6 +15,6 @@ RUN apk add --no-cache openssl
RUN apk add --no-cache git-lfs RUN apk add --no-cache git-lfs
RUN git lfs install --system RUN git lfs install --system
# Add Java to PATH via profile.d for SSH sessions # Configure SSH to behave more like Debian - load environment properly
RUN echo 'export PATH="/opt/java/openjdk/bin:$PATH"' > /etc/profile.d/10-java.sh RUN echo 'PermitUserEnvironment yes' >> /etc/ssh/sshd_config
RUN chmod +x /etc/profile.d/10-java.sh RUN echo 'UsePAM yes' >> /etc/ssh/sshd_config