diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c968e28 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3-alpine +LABEL description="A Matrix bot for Alertmanager" +# 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 requirements.txt +RUN pip install --no-cache-dir -r requirements.txt +# Copy the all the necessary files +COPY . . +EXPOSE 8000 +ENTRYPOINT python3 bot.py diff --git a/element/Dockerfile b/element/Dockerfile index 7b48707..9d74f94 100644 --- a/element/Dockerfile +++ b/element/Dockerfile @@ -1,4 +1,4 @@ -FROM vectorim/element-web:v1.7.23 +FROM vectorim/element-web:v1.9.0 # Customize instance settings and background COPY config.json /app/config.json