FROM ubuntu
MAINTAINER zm “”
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
&& apt-get install python3.7 -y
&& apt-get install python3-pip -y
&& apt-get install git -y
&& apt-get install openjdk-8-jdk -y
WORKDIR /code
ADD allure-commandline-2.13.2.tgz ./
RUN mv allure-2.13.2/ allure
# 使用以下方式配置环境变量无法生效
# && echo “export PATH=/code/allure/bin:$PATH” >> /etc/profile
# && /bin/bash -c “source /etc/profile”
&& git clone
ENV PATH /code/allure/bin:$PATH
RUN pip3 install -r /code/gwm_apitest/requirements.txt -i https://mirrors.aliyun.com/pypi/simple
WORKDIR /code/gw_apitest
CMD [“/bin/bash”]