openreplay/ee/api/Dockerfile.crons
Taha Yassine Kraiem 8ede1d906b feat(chalice): changed Dockerfile
feat(alerts): changed Dockerfile
feat(crons): changed Dockerfile
2022-07-20 13:33:16 +02:00

22 lines
678 B
Text

FROM python:3.10-alpine
LABEL Maintainer="Rajesh Rajendran<rjshrjndrn@gmail.com>"
LABEL Maintainer="KRAIEM Taha Yassine<tahayk2@gmail.com>"
RUN apk upgrade busybox --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main
RUN apk add --no-cache build-base tini
ARG envarg
ENV APP_NAME=crons \
pg_minconn=2 \
pg_maxconn=10 \
ENTERPRISE_BUILD=${envarg} \
ACTION=""
WORKDIR /work_tmp
COPY requirements-crons.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 entrypoint_crons.sh entrypoint.sh
ENTRYPOINT ["/sbin/tini", "--"]
CMD ./entrypoint.sh