create initial fuglu image
Some checks failed
Build OCI Containers / Build Containers (push) Failing after 1m7s

This commit is contained in:
Stefan Harmuth 2024-03-11 00:59:03 +01:00
parent b0e0f6c695
commit a5046adee6
2 changed files with 26 additions and 0 deletions

View File

@ -36,3 +36,10 @@ jobs:
context: postfix
push: true
tags: git.domainforge.de/public/postfix:latest
- name: Build and push Fuglu Container
uses: docker/build-push-action@v2
with:
context: fuglu
push: true
tags: git.domainforge.de/public/fuglu:latest

19
fuglu/Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM debian:bookworm-slim
RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y --purge autoremove && \
apt-get -y install python3 python3-pip && \
apt-get -y clean && \
pip3 install --upgrade pip && \
python3 -m venv /opt/fuglu && \
/opt/fuglu/bin/pip3 install --upgrade pip setuptools && \
/opt/fuglu/bin/pip3 install fuglu rarfile rednose "sqlalchemy<2.0.0" python-magic pyspf py3dns mock ssdeep redis geoip2 beautifulsoup4 lxml pysrs pylzma dkimpy authres dmarc pysocks && \
mkdir -p /opt/fuglu/etc /var/fuglu /var/log/fuglu && \
chown nobody:nobody /var/fuglu /var/log/fuglu && \
cp -r /opt/fuglu/lib/python*/dist-packages/etc/fuglu/* /opt/fuglu/etc
EXPOSE 10025/tcp
EXPOSE 10028/tcp
CMD ["/opt/fuglu/bin/fuglu", "--foreground", "--lint"]