-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 853 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (23 loc) · 853 Bytes
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
28
29
30
31
FROM debian:bookworm-slim
RUN apt update \
&& apt -y upgrade \
&& apt install --no-install-recommends -y supervisor \
&& apt -y autoremove \
&& apt clean all
RUN apt update \
&& apt install --no-install-recommends -y openssh-server \
&& apt -y autoremove \
&& apt clean all
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
COPY set_root_password.sh /usr/local/bin/set_root_password.sh
RUN chown root.root /usr/local/bin/set_root_password.sh \
&& chmod 755 /usr/local/bin/set_root_password.sh
RUN apt update \
&& apt install --no-install-recommends -y corosync-qnetd \
&& apt -y autoremove \
&& apt clean all
RUN mkdir -p /run/sshd
COPY supervisord.conf /etc/supervisord.conf
EXPOSE 22
EXPOSE 5403
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]