BW
Size: a a a
BW
f
f
PU
P
BW

EB
BW

ENV PATH $CHROMEDRIVER_DIR:$PATH
EB
BW
FROM debian:buster-slim
ENV PYENV_ROOT "/opt/pyenv"
ENV TEST_ROOT "/opt/testapp"
ENV PATH "$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ENV PYVER 3.8.6
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
bash \
git \
wget \
curl \
netbase \
ca-certificates \
dnsutils \
dpkg-dev \
gcc \
libbluetooth-dev \
libbz2-dev \
libc6-dev \
libexpat1-dev \
libffi-dev \
libgdbm-dev \
liblzma-dev \
libncurses5-dev \
libncursesw5-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
make \
tk-dev \
uuid-dev \
xz-utils \
zlib1g-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& if [ -d "$PYENV_ROOT" ]; then rm -rf "$PYENV_ROOT"; fi \
&& curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash \
&& pyenv install "$PYVER" \
&& pyenv global $PYVER \
&& pip install --upgrade pip setuptools \
&& pyenv rehash \
&& apt-get autoremove -y && apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get update && \
apt-get install -y gnupg wget curl unzip --no-install-recommends && \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list && \
apt-get update -y && \
apt-get install -y google-chrome-stable && \
CHROMEVER=$(google-chrome --product-version | grep -o "[^\.]*\.[^\.]*\.[^\.]*") && \
DRIVERVER=$(curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROMEVER") && \
wget -q --continue -P /chromedriver "http://chromedriver.storage.googleapis.com/$DRIVERVER/chromedriver_linux64.zip" && \
unzip /chromedriver/chromedriver* -d /chromedriver
WORKDIR "$TEST_ROOT"
COPY init-env.sh init-env.sh
RUN touch .python-version \
&& echo "$PYVER" > .python-version \
&& chmod 755 init-env.sh
ENTRYPOINT ["/opt/testapp/init-env.sh"]
M

IS
А
M
M
А
А
А
А