-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (34 loc) · 1022 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
FROM node:current
RUN apt update && \
apt upgrade -y && \
apt install -y bash git neovim
# install nodecg
WORKDIR /nodecg
RUN git clone --depth 1 --branch v1.8.1 https://github.com/nodecg/nodecg.git .
RUN npm ci
# install bundles
# nodecg-speedcontrol
WORKDIR /nodecg/bundles
RUN git clone --depth 1 --branch v2.3.0 https://github.com/speedcontrol/nodecg-speedcontrol.git
WORKDIR /nodecg/bundles/nodecg-speedcontrol
RUN npm ci
# nodecg-tiltify
WORKDIR /nodecg/bundles
RUN git clone --depth 1 https://github.com/daniellockard/nodecg-tiltify.git
WORKDIR /nodecg/bundles/nodecg-tiltify
RUN npm ci
# ncg-spotify
WORKDIR /nodecg/bundles
RUN git clone --depth 1 https://github.com/EwanLyon/ncg-spotify.git
WORKDIR /nodecg/bundles/ncg-spotify
RUN npm ci
# wasd2021
WORKDIR /nodecg/bundles/wasd2021
COPY package.json package-lock.json rollup.config.js ./
COPY src/ ./src/
RUN npm ci
RUN npm run build
WORKDIR /nodecg
RUN cp /nodecg/bundles/wasd2021/cfg ./cfg
EXPOSE 9090
ENTRYPOINT ["node", "/nodecg/index.js"]