-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (25 loc) · 709 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
# syntax=docker/dockerfile:1.3-labs
ARG DISTRO_CODENAME
FROM debian:${DISTRO_CODENAME}-slim
RUN <<EOF
set -o errexit -o nounset
apt-get update -qq
apt-get upgrade -qq -y
DEBIAN_FRONTEND=noninteractive apt-get -qq -y --no-install-recommends install \
ca-certificates \
chromium \
curl \
dumb-init \
socat \
ttf-wqy-zenhei
useradd headless --shell /bin/bash --create-home
mkdir /data && chown -R headless:headless /data
apt-get auto-remove -qq -y
apt-get clean
rm -rf /var/lib/apt/lists/*
EOF
COPY root /
USER headless
EXPOSE 9222
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/entrypoint.sh", "--user-data-dir=/data", "--disable-dev-shm-usage"]
CMD ["--disable-gpu", "--headless", "--no-sandbox" ]