diff --git a/alpine/Dockerfile b/alpine/Dockerfile index a811f36..c65b8fa 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -15,6 +15,6 @@ RUN apk add --no-cache openssl RUN apk add --no-cache git-lfs RUN git lfs install --system -# Add Java to PATH via profile.d for SSH sessions -RUN echo 'export PATH="/opt/java/openjdk/bin:$PATH"' > /etc/profile.d/10-java.sh -RUN chmod +x /etc/profile.d/10-java.sh \ No newline at end of file +# Configure SSH to behave more like Debian - load environment properly +RUN echo 'PermitUserEnvironment yes' >> /etc/ssh/sshd_config +RUN echo 'UsePAM yes' >> /etc/ssh/sshd_config \ No newline at end of file