Skip to content

Conversation

Vylyne
Copy link

@Vylyne Vylyne commented Sep 30, 2025

  • Merged duplicate RUN commands for user/group creation, directory setup, and permissions into a single step.
  • Ensured all necessary files and directories have appropriate permissions for arbitrary UID support with Docker's --user flag.
  • Reordered COPY commands to precede permission and setup steps for clarity and best practices.
  • set Environment variable to make the default folder /opt/imapfilter rather then ~/.imapfilter so this works for UIDs that don't exist as well.
  • Ensured /opt/imapfilter/ is writable for all users.
  • Ensured /opt/imapfilter/config.lua is created and writable for all users.
  • Improved maintainability and reduced image layer

superceeds #79

- Merged duplicate RUN commands for user/group creation, directory setup, and permissions into a single step.
- Ensured all necessary files and directories have appropriate permissions for arbitrary UID support with Docker's --user flag.
- Removed unnecessary package installations, keeping only runtime dependencies (lua, openssl, pcre).
- Reordered COPY commands to precede permission and setup steps for clarity and best practices.
- Ensured /opt/imapfilter/config.lua is created and writable for all users.
- Improved maintainability and reduced image layer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant