-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
49 lines (42 loc) · 891 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM alpine:edge
# hadolint ignore=DL3018
RUN apk update && \
apk add --no-cache dumb-init && \
apk add --no-cache curl fontconfig font-noto-cjk && \
fc-cache -fv && \
apk add --no-cache \
chromium \
nss \
freetype \
freetype-dev \
harfbuzz \
ca-certificates \
ttf-freefont \
nodejs \
yarn \
xvfb \
xauth \
dbus \
dbus-x11 \
x11vnc \
ffmpeg \
&& \
apk add --update --no-cache tzdata && \
cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \
echo "Asia/Tokyo" > /etc/timezone && \
apk del tzdata
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn
COPY src/ src/
COPY tsconfig.json .
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
COPY template.html .
ENV NODE_ENV production
ENV API_PORT 80
ENV DISPLAY :99
ENV LOG_DIR /data/logs/
ENV CHROMIUM_PATH /usr/bin/chromium-browser
ENTRYPOINT ["dumb-init", "--"]
CMD ["/app/entrypoint.sh"]