Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
nospam
Commits
7831efb0
Commit
7831efb0
authored
Oct 20, 2019
by
ale
Browse files
Add a Dockerfile
parent
34e4f76b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
Dockerfile
Dockerfile
+24
-0
nospam/conf/docker-start.sh
nospam/conf/docker-start.sh
+11
-0
No files found.
Dockerfile
0 → 100644
View file @
7831efb0
FROM
debian:buster AS build
RUN
apt-get
-q
update
&&
\
env
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
--no-install-recommends
\
python3 python3-setuptools python3-wheel
COPY
setup.* /src/
COPY
nospam/ /src/nospam/
WORKDIR
/src
RUN
python3 setup.py bdist_wheel
FROM
debian:buster
COPY
--from=build /src/dist/nospam*.whl /tmp/
RUN
apt-get
-q
update
&&
\
env
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
--no-install-recommends
\
curl crm114 python3 python3-setuptools python3-pip
\
python3-gevent python3-googleapi python3-yaml
&&
\
pip3
install
/tmp/nospam
*
.whl
&&
\
rm
-fr
/var/lib/apt/lists/
*
&&
rm
-f
/tmp/
*
.whl
COPY
nospam/conf/update-surbl /usr/bin/update-surbl
COPY
nospam/conf/docker-start.sh /usr/bin/nospamd
ENTRYPOINT
["/usr/bin/nospamd"]
nospam/conf/docker-start.sh
0 → 100755
View file @
7831efb0
#!/bin/sh
dir
=
${
NOSPAM_SURBL_DIR
:-
/var/lib/nospam
}
test
-d
${
dir
}
||
mkdir
-p
${
dir
}
if
[
!
-e
${
dir
}
/two-level-tlds
]
;
then
/usr/bin/update-surbl
fi
exec
/usr/local/bin/nospamd
"
$@
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment