init commit

This commit is contained in:
2021-12-30 01:12:33 +01:00
commit 183561658b
3 changed files with 61 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
FROM alpine:latest
ENV USER=borg
ENV UID=1000
ENV GID=1000
# Add Folders and Shell Scripts
VOLUME ["/.ssh"]
VOLUME ["/backup"]
COPY motd.txt /etc/motd
COPY entrypoint.sh /
# Install packages
RUN apk update ; apk upgrade
RUN apk add --no-cache sudo bash tzdata openssh-server openrc \
borgbackup
# Setup SSH-Server
RUN sed -ie 's/#Port 22/Port 22/g' /etc/ssh/sshd_config
RUN sed -ie 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/g' /etc/ssh/sshd_config
RUN sed -ie 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config
EXPOSE 22
ENTRYPOINT [ "/entrypoint.sh" ]