mirror of
https://github.com/napnap75/multiarch-docker-images.git
synced 2025-12-15 03:04:19 +01:00
Added the restic rest server and corrected a bug in Gandi
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
23
restic-rest/Dockerfile
Normal file
23
restic-rest/Dockerfile
Normal file
@@ -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"]
|
||||
Reference in New Issue
Block a user