forked from esamarathon/esa-layouts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (24 loc) · 734 Bytes
/
Dockerfile
File metadata and controls
25 lines (24 loc) · 734 Bytes
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
# NEEDS SOME IMPROVEMENTS, MAINLY TO DO WITH THE
# SPEEDCONTROL BRANCH USED AND CONFIG SETTINGS
FROM node:10
WORKDIR /home/node/app
RUN chown -R node:node /home/node/app
# Install some packages to install NodeCG.
RUN npm install bower -g && npm install nodecg-cli -g
USER node
RUN nodecg setup
# Install latest nodecg-speedcontrol.
RUN nodecg install speedcontrol/nodecg-speedcontrol
# Copy over this bundle's files and fully build it.
WORKDIR /home/node/app/bundles/esa-layouts
USER root
RUN chown -R node:node /home/node/app/bundles/esa-layouts
USER node
COPY --chown=node:node package*.json ./
RUN npm install
COPY --chown=node:node . .
RUN npm run build
# Run NodeCG.
WORKDIR /home/node/app
EXPOSE 9090
CMD [ "nodecg", "start" ]