Skip to content

Commit

Permalink
TEMPDBG: break dockerfile run into separate parts
Browse files Browse the repository at this point in the history
  • Loading branch information
spoore1 committed Jul 10, 2024
1 parent 2e0e2b5 commit 5c4326c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ RUN dnf -y --nogpgcheck install autoconf \
glibc-locale-source \
glibc-langpack-ru \
cracklib-dicts \
audit \
&& dnf clean all \
&& sed -i 's/.*PermitRootLogin .*/#&/g' /etc/ssh/sshd_config \
&& echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config \
&& sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd \
&& systemctl enable sshd
audit
RUN dnf clean all
RUN sed -i 's/.*PermitRootLogin .*/#&/g' /etc/ssh/sshd_config
RUN echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
RUN systemctl enable sshd

EXPOSE 22
CMD [ "/sbin/init" ]

0 comments on commit 5c4326c

Please sign in to comment.