1
0
mirror of https://www.github.com/b3vis/borg-server synced 2026-08-05 16:12:46 +02:00

Merge pull request #3 from ebartz/master

ssh-host-keys should not be a static part of the image
This commit is contained in:
b3vis
2020-05-29 07:00:21 +01:00
committed by GitHub
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,6 @@ MAINTAINER b3vis
#Install Borg & SSH
RUN apk add openssh sshfs borgbackup supervisor --no-cache
RUN adduser -D -u 1000 borg && \
ssh-keygen -A && \
mkdir /backups && \
chown borg.borg /backups && \
sed -i \
@@ -11,6 +10,7 @@ RUN adduser -D -u 1000 borg && \
-e 's/^PermitRootLogin without-password$/PermitRootLogin no/g' \
/etc/ssh/sshd_config
COPY supervisord.conf /etc/supervisord.conf
COPY service.sh /usr/local/bin/service.sh
RUN passwd -u borg
EXPOSE 22
CMD ["/usr/bin/supervisord"]
+1 -1
View File
@@ -44,4 +44,4 @@ docker create \
```
### Note
After creating the container you will need to start the container add your own public keys
After creating the container you will need to start the container add your own public keys.
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
ssh-keygen -A
/usr/sbin/sshd -D
+1 -1
View File
@@ -2,4 +2,4 @@
nodaemon=true
[program:sshd]
command=/usr/sbin/sshd -D
command=/usr/local/bin/service.sh