-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (20 loc) · 737 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (20 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM alpine:3.21
ENV LANG=ru_RU.UTF-8 \
LANGUAGE=ru_RU.UTF-8 \
TZ=Europe/Moscow \
ROOT_PASS=qwe123
ADD config /config
ADD entrypoint.sh /entrypoint.sh
RUN apk add --update mc gzip curl rsync git wget screen procps bash nano openssh tzdata sudo htop ca-certificates openssl coreutils mysql-client postgresql-client python3 \
&& cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime \
&& echo "Europe/Moscow" > /etc/timezone \
&& apk del tzdata \
&& echo -n root:$ROOT_PASS | chpasswd \
&& chmod 755 /entrypoint.sh \
&& chmod -R 700 /config \
&& chmod 600 /config/host/sshd_config \
&& cp /config/profile /root/.profile \
&& mkdir -p /root/.ssh
VOLUME ["/root/.ssh", "/etc/ssh"]
CMD ["/usr/sbin/sshd", "-D"]
ENTRYPOINT ["/entrypoint.sh"]