FROM 192.168.4.36/baseimg/python:latest
USER root

WORKDIR /home/quant_group
COPY run.py .

RUN pip install requests
RUN chmod +x ./run.py
RUN export NAMESPACE=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace`

CMD ["python", "-c", "run.py"]