0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-01-24 01:10:24 +00:00
alerta_alerta/Dockerfile
Nick Satterly 2c207740ea
Release/9.1 (#1898)
Python 3.9 - 3.12
Postgres 13 - 16
MongoDB 6.0 - 7.0
2023-12-22 14:03:45 +01:00

31 lines
695 B
Docker

FROM python:3.9-slim-buster
ENV ALERTA_ENDPOINT=http://localhost:8080
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
build-essential \
curl \
gnupg2 \
libldap2-dev \
libpq-dev \
libsasl2-dev \
postgresql-client \
python3-dev \
xmlsec1 && \
apt-get -y clean && \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/*
COPY . /app
WORKDIR /app
RUN python -m pip install --upgrade pip && \
pip install -r requirements.txt && \
pip install -r requirements-ci.txt && \
pip install .
EXPOSE 8080
ENV FLASK_SKIP_DOTENV=1
CMD ["alertad", "run", "--host", "0.0.0.0", "--port", "8080"]