-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
Copy pathDockerfile
35 lines (26 loc) · 876 Bytes
/
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
ARG NAMESPACE=selenium
ARG VERSION=latest
FROM ${NAMESPACE}/base:${VERSION}
ARG AUTHORS
LABEL authors=${AUTHORS}
USER root
#==============
# Socat to proxy docker.sock when mounted
#==============
RUN apt-get update -qqy \
&& apt-get -qqy --no-install-recommends install socat \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
USER ${SEL_UID}
#========================
# Selenium Standalone Docker Configuration
#========================
EXPOSE 4444
COPY --chown="${SEL_UID}:${SEL_GID}" start-selenium-grid-docker.sh \
start-socat.sh \
/opt/bin/
COPY --chown="${SEL_UID}:${SEL_GID}" config.toml /opt/selenium/docker.toml
COPY selenium-grid-docker.conf /etc/supervisor/conf.d/
ENV SE_OTEL_SERVICE_NAME="selenium-node-docker" \
SE_EVENT_BUS_PUBLISH_PORT="4442" \
SE_EVENT_BUS_SUBSCRIBE_PORT="4443" \
SE_NODE_DOCKER_CONFIG_FILENAME="docker.toml"