forked from Scribery/tlog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.fedora
27 lines (26 loc) · 911 Bytes
/
Dockerfile.fedora
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM fedora:rawhide
WORKDIR /tlbuild
COPY . .
RUN dnf -y --nogpgcheck install autoconf \
automake \
make \
libtool \
rpm-build \
systemd-devel \
json-c-devel \
libcurl-devel \
libutempter-devel \
openssh-server \
openssh-clients \
passwd \
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
EXPOSE 22
CMD [ "/sbin/init" ]