21 lines (16 with data), 514 Bytes
FROM ubuntu:latest
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install python3 python3-pip ca-certificates -y
RUN apt-get install php7.4-cli php7.4-xml -y --no-install-recommends
RUN python3 -c "import sys; print(sys.version)"
RUN python3 -m pip install --upgrade pip
RUN pip3 install -U setuptools
RUN mkdir /usr/src/app
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
WORKDIR /usr/src/app
COPY . .
RUN pip3 install .[sslyze]
CMD ["python3", "setup.py", "test", "-vv"]