borg-server/Dockerfile
Adam Štrauch 21ae5738c3
All checks were successful
Build a dev image / build (push) Successful in 9s
Initial commit
2025-11-19 23:54:03 +01:00

17 lines
363 B
Docker

FROM alpine:3.22
RUN apk add --no-cache borgbackup openssh
COPY entrypoint.sh /entrypoint.sh
RUN addgroup borg && \
adduser -D -h /srv -G borg borg && \
chmod +x /entrypoint.sh && \
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
VOLUME /srv
EXPOSE 22
ENTRYPOINT ["/entrypoint.sh"]
CMD ["borg", "--help"]