mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2026-10-15 21:35:23 +08:00
feat: install rsync from Alpine edge branch for latest security patches
This commit is contained in:
+9
-1
@@ -1,6 +1,14 @@
|
||||
FROM alpine:3.24.2@sha256:294b683cb724975bec92580e1e685676bd4b50bda910ddb8c51d4cabeaec77e6 AS base
|
||||
|
||||
RUN apk update && apk add --no-cache --upgrade 'rsync>=3.5.1-r0' openssh openssl busybox
|
||||
# Add Alpine edge branch as tagged repository for rsync.
|
||||
RUN printf '%s\n' \
|
||||
'@edge https://dl-cdn.alpinelinux.org/alpine/edge/main' \
|
||||
'@edge https://dl-cdn.alpinelinux.org/alpine/edge/community' \
|
||||
>> /etc/apk/repositories
|
||||
|
||||
# Install rsync from Alpine edge branch for latest upstream security patches.
|
||||
# Other packages are installed from Alpine 3.24.2 branch.
|
||||
RUN apk update && apk add --no-cache --upgrade 'rsync@edge>=3.5.1-r0' openssh openssl busybox
|
||||
|
||||
RUN rm -rf /var/cache/apk/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user