Feat: add ci and docker conifig
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Dorian Zedler 2022-09-29 20:32:54 +02:00
parent fdc2fb9b30
commit 5072af4b0c
Signed by: dozedler
GPG key ID: 989DE36109AFA354
4 changed files with 19 additions and 3 deletions

2
.dockerignore Normal file
View file

@ -0,0 +1,2 @@
venv
__pycache__

12
.woodpecker.yml Normal file
View file

@ -0,0 +1,12 @@
pipeline:
build-and-publish:
image: plugins/docker
settings:
registry: git.makerlab-murnau.de
repo: git.makerlab-murnau.de/MakerLab/matrix-bot
auto_tag: true
dockerfile: Dockerfile
username:
from_secret: gitea_username
password:
from_secret: gitea_password

View file

@ -1,8 +1,9 @@
FROM python:3-alpine
RUN apk --no-cache add build-base openldap-dev python2-dev python3-dev
RUN pip3 install -r requirements.txt
RUN apk --no-cache add build-base openldap-dev python3-dev
COPY src/* ./
RUN pip3 install -r requirements.txt
ENTRYPOINT [ "python3", "main.py" ]

View file

@ -1,3 +1,4 @@
python-ldap==3.4.3
coloredlogs==15.0.1
matrix-nio==0.19.0
matrix-synapse-admin==0.7.0