openreplay/ee/api/Dockerfile.alerts
Taha Yassine Kraiem 18d4f17775 feat(chalice): upgraded dependencies
feat(chalice): refactored code
feat(chalice): assist validate session by DB
feat(chalice): assist validate session by Live sessions
feat(chalice): assist generate agent's token
2022-09-26 16:33:35 +02:00

23 lines
647 B
Text

FROM python:3.10-alpine
LABEL Maintainer="Rajesh Rajendran<rjshrjndrn@gmail.com>"
LABEL Maintainer="KRAIEM Taha Yassine<tahayk2@gmail.com>"
RUN apk add --no-cache build-base tini
ARG envarg
ENV APP_NAME=alerts \
PG_MINCONN=1 \
PG_MAXCONN=10 \
LISTEN_PORT=8000 \
ENTERPRISE_BUILD=${envarg}
COPY requirements-alerts.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
RUN adduser -u 1001 openreplay -D
USER 1001
ENTRYPOINT ["/sbin/tini", "--"]
CMD ./entrypoint.sh