init commit
This commit is contained in:
+24
@@ -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" ]
|
||||
Reference in New Issue
Block a user