-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathDockerfile.base
54 lines (44 loc) · 1.3 KB
/
Dockerfile.base
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
48
49
50
51
52
53
54
# syntax=docker/dockerfile:1.4
FROM debian:12-slim
LABEL maintainer="[email protected]"
# Install selenium
ENV LC_ALL C
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
RUN useradd -d /home/seleuser -m seleuser
RUN chown -R seleuser /home/seleuser
RUN chgrp -R seleuser /home/seleuser
WORKDIR /home/seleuser
RUN apt-get update -y && apt-get install -yq \
software-properties-common \
python3.11 \
jq \
libnss3-tools
RUN apt-get update -y && apt-get install -yq \
curl \
wget \
sudo \
gnupg \
&& curl -sL https://deb.nodesource.com/setup_18.x | sudo bash -
RUN apt-get update -y && apt-get install -y \
nodejs
RUN apt-get update -y && apt-get install -yq \
unzip \
xvfb \
libxi6 \
libgconf-2-4 \
default-jdk
RUN apt-get update -y && apt-get install -yq chromium-driver
RUN wget -q https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.4.0/selenium-server-4.4.0.jar
RUN wget -q https://repo1.maven.org/maven2/org/testng/testng/7.6.1/testng-7.6.1.jar
# Install DocSearch dependencies
COPY Pipfile .
COPY Pipfile.lock .
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ENV PIPENV_HIDE_EMOJIS 1
RUN apt-get update -y && apt-get install -yq \
python3-pip
RUN pip3 install pipenv --break-system-packages
USER 1000
RUN pipenv sync --python 3.11