2021-03-16 00:36:50 +01:00
|
|
|
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
|
|
|
|
|
2021-03-16 01:36:47 +01:00
|
|
|
EXPOSE 8000
|
|
|
|
ENTRYPOINT python3 /var/www/kanbot/bot.py --host 0.0.0.0 --port 8000
|