diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5719eed..3dd7d58 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - repository: [docker2mqtt, gandi, mopidy, piwigo-souvenirs, restic-auto, shairport-sync, slack-eraser, snapserver, telegraf] + repository: [docker2mqtt, gandi, mopidy, piwigo-souvenirs, restic-auto, restic-rest, shairport-sync, slack-eraser, snapserver, telegraf] steps: - name: Checkout diff --git a/gandi/Dockerfile b/gandi/Dockerfile index 862643b..a1d3e25 100644 --- a/gandi/Dockerfile +++ b/gandi/Dockerfile @@ -2,7 +2,7 @@ FROM alpine:latest ADD updatedns.sh /usr/bin/updatedns.sh -RUN apk add --no-cache curl jq \ +RUN apk add --no-cache bash curl jq \ && chmod +x /usr/bin/updatedns.sh CMD /usr/bin/updatedns.sh diff --git a/restic-rest/Dockerfile b/restic-rest/Dockerfile new file mode 100644 index 0000000..cfa53d9 --- /dev/null +++ b/restic-rest/Dockerfile @@ -0,0 +1,23 @@ +FROM golang:alpine AS builder + +RUN apk add --no-cache git \ + && mkdir -p /go/src/github.com/restic \ + && cd /go/src/github.com/restic \ + && git clone https://github.com/restic/rest-server \ + && cd rest-server \ + && go run build.go + +FROM alpine:latest + +COPY --from=builder /go/src/github.com/restic/rest-server/rest-server /go/src/github.com/restic/rest-server/docker/* /usr/bin/ + +RUN apk add --no-cache apache2-utils \ + && adduser -DH rest-server + +USER rest-server + +VOLUME /data + +ENV DATA_DIRECTORY=/data PASSWORD_FILE=/data/.htpasswd + +ENTRYPOINT ["/usr/bin/entrypoint.sh"]