* feat(chalice): upgrades & refacotered image * feat(alerts): upgrades & refacotered image * feat(crons): upgrades & refacotered image * feat(crons): changed build script * feat(alerts): changed build script * feat(crons): changed Dockerfile * feat(alerts): changed shell interpreter * feat(chalice): changed shell interpreter * feat(crons): changed shell interpreter * feat(alerts): changed Dockerfile * feat(chalice): changed Dockerfile * feat(crons): changed Dockerfile * feat(chalice): include tenant_key * feat(chalice): less imports
23 lines
No EOL
672 B
Text
23 lines
No EOL
672 B
Text
FROM python:3.10-slim
|
|
LABEL Maintainer="Rajesh Rajendran<rjshrjndrn@gmail.com>"
|
|
LABEL Maintainer="KRAIEM Taha Yassine<tahayk2@gmail.com>"
|
|
ENV APP_NAME alerts
|
|
ENV pg_minconn 2
|
|
ENV pg_maxconn 10
|
|
# 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
|
|
|
|
COPY requirements.txt /work_tmp/requirements.txt
|
|
RUN pip install --no-cache-dir --upgrade -r /work_tmp/requirements.txt
|
|
|
|
WORKDIR /work
|
|
COPY . .
|
|
RUN mv env.default .env && mv app_alerts.py app.py && mv entrypoint_alerts.sh entrypoint.sh
|
|
|
|
ENTRYPOINT ["/tini", "--"]
|
|
CMD ./entrypoint.sh |