FROM repo.unisoc.com:12443/unisoc_h_docker_registry/ubuntu:18.04
RUN apt-get update
RUN apt-get install -y vim locales iputils-ping
RUN locale-gen en_US.UTF-8
RUN apt-get update
RUN apt-get upgrade
RUN  apt-get install -y git cmake ninja-build gperf  ccache dfu-util  device-tree-compiler wget  python3-pip python3-setuptools python3-tk  python3-wheel xz-utils file  make gcc gcc-multilib g++-multilib  libsdl2-dev
RUN apt-get update
RUN apt-get install -y unzip
ENV LANG=en_US.UTF-8

COPY requirement*.txt /opt/
RUN pip3 install --user -r /opt/requirements.txt
RUN rm -rf /opt/requirement*.txt


COPY entrypoint.sh /opt/esp/entrypoint.sh

ENTRYPOINT [ "/opt/esp/entrypoint.sh" ]
CMD [ "/bin/bash" ]
