All checks were successful
Build a dev image / build (push) Successful in 9s
17 lines
363 B
Docker
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"]
|