forked from fraunhoferhhi/vvdec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.selenium.dockerfile
41 lines (32 loc) · 1.16 KB
/
.selenium.dockerfile
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
# vim: filetype=dockerfile
FROM debian:bullseye
# using debian as a base instead of ubuntu, because in ubuntu chromium is a snap-package, which
# does not simply work in docker containers
LABEL maintainer="Gabriel Hege" \
description="Emscripen and Chrome+Selenium test environment"
ARG DEBIAN_FRONTEND=noninteractive
RUN echo 'APT::Install-Recommends "false";' >> /etc/apt/apt.conf
RUN apt-get update && apt-get install -y chromium chromium-driver
RUN apt-get update && \
apt-get install -y \
bzip2 \
ca-certificates \
ccache \
cmake \
curl \
git \
git \
ninja-build \
python3 \
xz-utils
ENV CMAKE_GENERATOR=Ninja
WORKDIR /opt
RUN git clone https://github.com/emscripten-core/emsdk.git
ENV PATH=$PATH:/opt/emsdk
RUN emsdk install latest && \
emsdk activate latest
# install selenium from debian package
RUN apt-get update && apt-get install -y python3-selenium
#RUN apt-get update && apt-get install -y python3-pip
#RUN pip install --user selenium
RUN apt-get clean ; apt-get autoclean