1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
FROM ubuntu:focal
ARG cache_bust
RUN apt update &&\
apt -y install locales
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV TZ Etc/UTC
ENV DEBIAN_FRONTEND noninteractive
RUN apt -y install\
software-properties-common\
curl\
sudo\
lsof
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt update
RUN apt -y install\
python3.8\
python3.9\
python3.10\
python3.11
RUN apt -y install\
python3.8-distutils\
python3.9-distutils\
&& curl https://bootstrap.pypa.io/get-pip.py | python3.9 -
ARG uid=1000
RUN groupadd -g $uid shtest\
&& useradd -m -u $uid -g $uid shtest\
&& gpasswd -a shtest sudo\
&& echo "shtest:shtest" | chpasswd
ENV TOX_PARALLEL_NO_SPINNER=1
USER shtest
WORKDIR /home/shtest/
ENV PATH="/home/shtest/.local/bin:$PATH"
RUN pip install tox flake8 black rstcheck mypy
COPY README.rst sh.py .flake8 tox.ini tests/sh_test.py /home/shtest/
|