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

Added GHA and switching to main branch as default. Also set /etc/ssh to be a volume

This commit is contained in:
Grant Bevis
2021-12-29 08:22:29 +00:00
parent 5004b2a6f5
commit 236fbf03fe
4 changed files with 123 additions and 1 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
FROM alpine:latest
MAINTAINER b3vis
#Install Borg & SSH
RUN apk add openssh sshfs borgbackup supervisor --no-cache
RUN apk add openssh sshfs borgbackup supervisor
RUN adduser -D -u 1000 borg && \
mkdir /backups && \
chown borg.borg /backups && \
@@ -13,4 +13,5 @@ COPY supervisord.conf /etc/supervisord.conf
COPY service.sh /usr/local/bin/service.sh
RUN passwd -u borg
EXPOSE 22
VOLUME /etc/ssh
CMD ["/usr/bin/supervisord"]