-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
58 lines (51 loc) 路 1.3 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM debian:bullseye-slim
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# hadolint ignore=DL3008
RUN apt-get update && \
apt-get install -y \
chromium \
chromium-l10n \
fonts-liberation \
fonts-roboto \
hicolor-icon-theme \
libcanberra-gtk-module \
libexif-dev \
libgl1-mesa-dri \
libgl1-mesa-glx \
libpangox-1.0-0 \
libv4l-0 \
fonts-symbola \
xvfb \
xauth \
dbus \
dbus-x11 \
x11vnc \
ca-certificates \
curl \
gnupg2 \
dumb-init \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/* && \
curl -sL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get update && \
apt-get install -y --no-install-recommends nodejs && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && \
apt-get install -y --no-install-recommends yarn && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn
COPY src/ src/
COPY tsconfig.json .
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
ENV DISPLAY :99
ENV NODE_ENV production
ENV CONFIG_PATH /data/config.json
ENV NOTIFIED_PATH /data/notified.json
ENV CHROMIUM_PATH /usr/bin/chromium
ENV LOG_DIR /data/logs
ENTRYPOINT ["dumb-init", "--"]
CMD ["/app/entrypoint.sh"]