Compare commits

...

2 Commits

Author SHA1 Message Date
fceef62556 aocbot container
Some checks failed
Build OCI Containers / Build Containers (push) Failing after 9m30s
2024-11-30 06:37:14 +01:00
a7d7ee73bb missing packages in jumphost container 2024-11-30 06:28:49 +01:00
3 changed files with 27 additions and 1 deletions

View File

@ -57,3 +57,10 @@ jobs:
context: jumphost
push: true
tags: git.domainforge.de/public/jumphost:latest
- name: Build and push AoCBot Container
uses: docker/build-push-action@v2
with:
context: aocbot
push: true
tags: git.domainforge.de/public/aocbot:latest

19
aocbot/Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM python:3.12.7-slim-bookworm
RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y --purge autoremove && \
apt-get -y install python3 python3-venv git && \
apt-get -y clean && \
sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen && \
groupadd -g 1000 aocbot && \
useradd -d /opt/aocbot -m -s /bin/bash -u 1000 -g 1000 aocbot && \
git clone https://git.domainforge.de/pennywise/aocbot.git /opt/aocbot && \
python3 -m venv /opt/venv && \
/opt/venv/bin/pip install -r /opt/aocbot/requirements.txt && \
chown -R 1000:1000 /opt/aocbot
USER 1000
CMD ["/opt/venv/bin/python3", "/opt/aocbot/aoc_bot.py"]

View File

@ -7,7 +7,7 @@ COPY supervisord.conf /etc/supervisord.conf
RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y --purge autoremove && \
apt-get -y install wget python3 python3-venv bsdgames bind9-dnsutils irssi neomutt ssh supervisor tmux vim w3m && \
apt-get -y install python3 python3-venv bsdgames bind9-dnsutils irssi less neomutt postfix ssh supervisor tmux vim w3m wget && \
apt-get -y clean && \
sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen && \