This commit is contained in:
1 parent
54e36370fd
commit
de7cb44f7a
1 file changed
+5
-4
+5
-4
@@ -4,16 +4,17 @@ WORKDIR /app
|
||||
RUN apk add --no-cache musl-dev pkgconfig openssl-dev
|
||||
|
||||
# Build rustic with s3 feature
|
||||
RUN cargo install --locked --git https://github.com/rustic-rs/rustic --tag v0.10.0 --features opendal
|
||||
RUN cargo install --locked \
|
||||
--git https://github.com/rustic-rs/rustic \
|
||||
--tag v0.10.0 \
|
||||
--features rustic_backend/opendal
|
||||
|
||||
# Final minimal image
|
||||
FROM alpine:latest
|
||||
FROM alpine:3.20
|
||||
RUN apk add --no-cache ca-certificates bash curl dcron tzdata
|
||||
|
||||
# rustic binary
|
||||
COPY --from=builder /usr/local/cargo/bin/rustic /usr/local/bin/rustic
|
||||
|
||||
# scripts
|
||||
COPY backup.sh /usr/local/bin/backup.sh
|
||||
COPY start.sh /start.sh
|
||||
RUN chmod +x /usr/local/bin/backup.sh /start.sh
|
||||
|
||||
Reference in new issue
Block a user