-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
79 lines (69 loc) · 1.51 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
# Obs dependencies
RUN apt-get update && \
apt-get install -y \
libmbedtls12 \
libasound2 \
libavcodec58 \
libavdevice58 \
libavfilter7 \
libavformat58 \
libavutil56 \
libcurl4 \
openssl \
libfdk-aac1 \
libfontconfig1 \
libfreetype6 \
libgl1-mesa-glx \
libjack-jackd2-0 \
libjansson4 \
libluajit-5.1-2 \
libpulse0 \
libqt5x11extras5 \
libspeexdsp1 \
libswresample3 \
libswscale5 \
libudev1 \
libv4l-0 \
libvlc5 \
libx11-6 \
libx264-155 \
libxcb-shm0 \
libxcb-xinerama0 \
libxcomposite1 \
libxinerama1 \
pkg-config \
python3 \
libqt5core5a \
libqt5svg5 \
swig \
libxcb-randr0 \
libxcb-xfixes0 \
libx11-xcb1 \
libxcb1 \
libsrt1
# Setting local time
RUN apt-get install -y tzdata && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo Asia/Shanghai > /etc/timezone
# Git, Node
RUN apt-get install -y git nodejs npm
# Xorg dummy input/driver
RUN apt-get install -y xserver-xorg-input-void xserver-xorg-video-dummy
COPY xorg.conf /etc/xorg.conf
ENV DISPLAY :99
# Copy code
WORKDIR /node-app
COPY package.json package-lock.json tsconfig.json ./
COPY src src
# Install dependencies
RUN npm i -g typescript
RUN npm config set unsafe-perm true && \
npm ci && \
npm config set unsafe-perm false
# Build
RUN npm run build
ADD entrypoint.sh ./
ENTRYPOINT ["bash", "entrypoint.sh"]
CMD [ "npm", "start" ]