# SPDX-License-Identifier: MulanPSL-2.0+
# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.

FROM timer-base

RUN yum -y update

COPY cbs /opt/cbs

COPY lkp-tests /c/lkp-tests

RUN chown -R lkp:lkp /c/lkp-tests /opt/cbs && chown -R 750 /c/lkp-tests /opt/cbs

RUN yum remove -y gdb gcc cpp rpcgen

WORKDIR /opt/cbs/src/timer

EXPOSE 20034

ENTRYPOINT gunicorn --config ./conf/gunicorn_conf.py run:app
