imapfilter icon indicating copy to clipboard operation
imapfilter copied to clipboard

Add Dockerfile

Open linusseelinger opened this issue 3 years ago • 1 comments

I came up with a simple dockerfile for imapfilter, might be helpful for easy deployment on servers. All you really need to do is set a bind mount pointing to your config file (see below).

I pushed an image built from that dockerfile to dockerhub. In docker-compose, you can run it with:

version: "3"
services:
  imapfilter:
    restart: always
    image: linusseelinger/imapfilter
    container_name: imapfilter
    volumes:
      - /your/config/imapfilter_config.lua:/config.lua

Would be great to have an officially supported docker setup, maybe this can serve as a starting point!

linusseelinger avatar Dec 17 '21 10:12 linusseelinger

I'd throw my docker file for imapfilter in the ring as well: https://github.com/ntnn/docker-imapfilter

ntnn avatar Dec 17 '21 11:12 ntnn

Thanks for the idea, I added an example Dockerfile, and some instructions at: https://github.com/lefcha/imapfilter/wiki/Docker

lefcha avatar Aug 06 '22 14:08 lefcha

Great, thanks a lot! Also, would be great to build this from CI and push to dockerhub, so the image is readily available without the users having to build it themselves. I have a github workflow set up for that task in a different project, should be easy to adapt link. I can help with this if you like!

linusseelinger avatar Aug 10 '22 16:08 linusseelinger