FROM python:3.10 COPY ./sources.list /etc/apt/sources.list RUN apt-get clean && apt-get update && \ apt-get install -yq cloc tzdata vim less vim dnsutils curl iputils-ping net-tools telnet iotop autoconf cron locales RUN locale-gen en_US.UTF-8 ENV TZ="Asia/Shanghai" RUN echo $TZ > /etc/timezone RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN dpkg-reconfigure -f noninteractive tzdata COPY . /py310 WORKDIR /py310 RUN mkdir /install RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple RUN pip install -U pip setuptools RUN pip install poetry RUN poetry config virtualenvs.in-project true RUN sed -i '/C.UTF-8/s/^# //g' /etc/locale.gen && \ locale-gen ENV LANG C.UTF-8 ENV LANGUAGE C:en ENV LC_ALL C.UTF-8 CMD ["bash"]