Use Python 3 to install Selenium

This commit is contained in:
Kitaiti Makoto 2022-05-15 05:26:27 +09:00
parent f151dee339
commit ed58e44d2e

View file

@ -9,7 +9,7 @@ RUN apt update &&\
wget -qO - https://artifacts.crowdin.com/repo/GPG-KEY-crowdin | apt-key add - &&\
echo "deb https://artifacts.crowdin.com/repo/deb/ /" > /etc/apt/sources.list.d/crowdin.list &&\
apt update &&\
apt install -y --no-install-recommends binutils-dev build-essential cmake curl gcc gettext git libcurl4-openssl-dev libdw-dev libelf-dev libiberty-dev libpq-dev libsqlite3-dev libssl-dev make openssl pkg-config postgresql postgresql-contrib python zlib1g-dev python3-pip zip unzip libclang-dev clang caddy crowdin3 &&\
apt install -y --no-install-recommends binutils-dev build-essential cmake curl gcc gettext git libcurl4-openssl-dev libdw-dev libelf-dev libiberty-dev libpq-dev libsqlite3-dev libssl-dev make openssl pkg-config postgresql postgresql-contrib python zlib1g-dev python3-venv python3-dev zip unzip libclang-dev clang caddy crowdin3 &&\
rm -rf /var/lib/apt/lists/*
#compile some deps
@ -21,7 +21,7 @@ RUN cargo install wasm-pack &&\
COPY cargo_config /root/.cargo/config
#install selenium for front end tests
RUN pip3 install selenium
RUN python3 -m venv .venv && bash -c "source .venv/bin/activate && pip3 install selenium"
#configure caddy
COPY Caddyfile /Caddyfile