feat(api): EE-alerts dockerfile
This commit is contained in:
parent
0cc23e68e0
commit
c016e15cb9
1 changed files with 19 additions and 0 deletions
19
ee/api/Dockerfile.alerts
Normal file
19
ee/api/Dockerfile.alerts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
FROM python:3.9.7-slim
|
||||
LABEL Maintainer="Rajesh Rajendran<rjshrjndrn@gmail.com>"
|
||||
LABEL Maintainer="KRAIEM Taha Yassine<tahayk2@gmail.com>"
|
||||
RUN apt-get update && apt-get install -y pkg-config libxmlsec1-dev gcc && rm -rf /var/lib/apt/lists/*
|
||||
WORKDIR /work
|
||||
COPY . .
|
||||
RUN pip install -r requirements.txt
|
||||
RUN mv .env.default .env && rm app.py && mv app_alerts.py app.py
|
||||
ENV pg_minconn 2
|
||||
|
||||
# Add Tini
|
||||
# Startup daemon
|
||||
ENV TINI_VERSION v0.19.0
|
||||
ARG envarg
|
||||
ENV ENTERPRISE_BUILD ${envarg}
|
||||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
|
||||
RUN chmod +x /tini
|
||||
ENTRYPOINT ["/tini", "--"]
|
||||
CMD ./entrypoint.sh
|
||||
Loading…
Add table
Reference in a new issue