From 8832152183dc38fc840dfe924df294b20378854f Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Mon, 29 Aug 2022 12:58:09 -0500 Subject: [PATCH] chore(docker): Fix permissions for default volume content Users that do not do bind-mount for the `/config` volume saw permissions issues with that directory because it was owned by the `root` user. This change forces the ownership of `/config` to `1000:1000` for those that plan to use vanilla docker volumes instead. --- CHANGELOG.md | 4 ++++ docker/Dockerfile | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35ca4ae7..ab54a485 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Docker: Fix `/config` permissions when not using bind-mount for the volume. + ## [2.4.1] - 2022-08-26 ### Fixed diff --git a/docker/Dockerfile b/docker/Dockerfile index 2afccd08..1450eec5 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -23,7 +23,8 @@ ENV PATH="${PATH}:/app/recyclarr" \ RUN set -ex; \ apk add --no-cache bash libstdc++ tzdata supercronic; \ - mkdir -p "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" && chmod 777 "$DOTNET_BUNDLE_EXTRACT_BASE_DIR"; + mkdir -p "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" && chmod 777 "$DOTNET_BUNDLE_EXTRACT_BASE_DIR"; \ + mkdir -p /config && chown 1000:1000 /config; COPY --from=build /build/publish /app/recyclarr/ COPY --chmod=555 ./scripts/prod/*.sh /