enable ssh mirrors in rootless images (#6896)

This mini-PR fixes mirror feature on docker rootless images, as discussed in #6894.

Thank you, regards

## Testing

- 24h After the PR is merged
- Visit https://v11.next.forgejo.org and create a ssh based mirror

<!--start release-notes-assistant-->

## Release notes
<!--URL:https://codeberg.org/forgejo/forgejo-->
- Bug fixes
  - [PR](https://codeberg.org/forgejo/forgejo/pulls/6896): <!--number 6896 --><!--line 0 --><!--description ZW5hYmxlIHNzaCBtaXJyb3JzIGluIHJvb3RsZXNzIGltYWdlcw==-->enable ssh mirrors in rootless images<!--description-->
<!--end release-notes-assistant-->

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6896
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: Alessandro Ogier <alessandro.ogier@gmail.com>
Co-committed-by: Alessandro Ogier <alessandro.ogier@gmail.com>
This commit is contained in:
Alessandro Ogier 2025-02-11 20:41:01 +00:00 committed by Earl Warren
parent 5509ce5557
commit 90adede20b

View file

@ -71,6 +71,7 @@ RUN apk --no-cache add \
git \ git \
curl \ curl \
gnupg \ gnupg \
openssh-client \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
RUN addgroup \ RUN addgroup \