feat(api): changed alerts_build script

feat(api): changed Dockerfile
feat(api): alerts requirements
This commit is contained in:
Taha Yassine Kraiem 2022-01-10 13:48:51 +01:00
parent 826b0e5c35
commit 7104348f9e
3 changed files with 14 additions and 21 deletions

View file

@ -3,8 +3,8 @@ LABEL Maintainer="Rajesh Rajendran<rjshrjndrn@gmail.com>"
LABEL Maintainer="KRAIEM Taha Yassine<tahayk2@gmail.com>"
WORKDIR /work
COPY . .
RUN pip install -r requirements.txt
RUN mv .env.default .env && rm app.py && mv app_alerts.py app.py
RUN pip install -r requirements_alerts.txt
RUN mv .env.default .env && mv app_alerts.py app.py
ENV pg_minconn 2
# Add Tini

View file

@ -0,0 +1,12 @@
requests==2.26.0
urllib3==1.26.6
boto3==1.16.1
psycopg2-binary==2.8.6
fastapi==0.70.1
uvicorn[standard]==0.16.0
python-decouple==3.5
pydantic[email]==1.8.2
apscheduler==3.8.1

View file

@ -1,19 +0,0 @@
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