Merge branch 'master' of https://gitea.auro.re/Aurore/kanbot
This commit is contained in:
commit
edb709a8a9
3 changed files with 36 additions and 0 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
FROM python:3.9-alpine
|
||||
LABEL description="A Matrix bot for Kanboard"
|
||||
|
||||
# Instal gcc to build wheels
|
||||
RUN apk add --no-cache gcc musl-dev
|
||||
|
||||
# Force the stdout and stderr streams to be unbuffered
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
# Install requirements from PyPI
|
||||
COPY requirements.txt /var/www/kanbot/
|
||||
RUN pip install --no-cache-dir -r /var/www/kanbot/requirements.txt
|
||||
|
||||
# Copy the all the necessary files
|
||||
COPY . /var/www/kanbot/
|
||||
|
||||
# Move the rigth directory
|
||||
WORKDIR /var/www/kanbot
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT /usr/bin/python3 /var/www/kanbot/bot.py
|
10
docker-compose.yml
Normal file
10
docker-compose.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
kanbot:
|
||||
image: kanbot
|
||||
restart: always
|
||||
volumes:
|
||||
- ./config.yaml:/var/www/kanbot/config.yaml:ro
|
||||
ports:
|
||||
- 8080:8080
|
5
requirements.txt
Normal file
5
requirements.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
aiohttp>=3.7.4
|
||||
jinja2>=2.11.2
|
||||
markdown>=3.3.4
|
||||
matrix-nio>=0.17.0
|
||||
pyyaml>=5.4
|
Loading…
Reference in a new issue