Skip to content

Commit

Permalink
Initialize repository
Browse files Browse the repository at this point in the history
  • Loading branch information
eikendev committed Apr 17, 2020
0 parents commit 251239c
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
volume/
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM alpine:latest

VOLUME /volume/configuration

WORKDIR /volume/configuration

RUN set -xe \
&& addgroup --gid 2000 app \
&& adduser --uid 2000 --disabled-password --no-create-home --ingroup app app

RUN set -xe \
&& apk update \
&& apk upgrade \
&& apk add --no-cache \
libcrypto1.1 libssl1.1 \
&& apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
imapfilter \
&& apk del --progress --purge \
&& rm -rf /var/cache/apk/*

USER app

ENTRYPOINT ["imapfilter"]
7 changes: 7 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ISC License (ISC)

Copyright 2020 eikendev

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
IMAGE := imapfilter

.PHONY: build
build:
podman build \
-t \
local/${IMAGE} .

.PHONY: run
run:
podman run \
-ti \
-v ./volume/config:/volume/config \
--rm \
--security-opt label=disable \
--name=${IMAGE} \
local/imapfilter
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# About

This image runs [imapfilter](https://github.com/lefcha/imapfilter), a tool for email filtering.
It serves similar purposes as [Sieve](http://sieve.info/), but no server-side support is required.

0 comments on commit 251239c

Please sign in to comment.