forked from axiom-data-science/rsync-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 695 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 695 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
FROM debian:buster
LABEL maintainer=thomas.bruckmann@softgarden.de
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
ENV NOTVISIBLE "in users profile"
RUN apt-get update && \
apt-get install -y openssh-server rsync && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mkdir /var/run/sshd
RUN sed -i 's/#PermitRootLogin prohibit-password/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 echo "export VISIBLE=now" >> /etc/profile
COPY entrypoint.sh /entrypoint.sh
RUN chmod 744 /entrypoint.sh
EXPOSE 22
EXPOSE 873
CMD ["rsync_server"]
ENTRYPOINT ["/entrypoint.sh"]