forked from Sunbird-Lern/sunbird-nodebb
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
42 lines (32 loc) · 1.28 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
FROM node:lts
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ARG NODE_ENV
ENV NODE_ENV $NODE_ENV
COPY NodeBB/install/package.json /usr/src/app/package.json
COPY NodeBB/ /usr/src/app
RUN npm install --only=prod && \
npm cache clean --force
RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-oidc.git
RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-api.git#22e943811241bad88c45e985a8bfe9d5baec2ba1
RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-telemetry.git
RUN npm install https://github.com/Sunbird-Ed/nodebb-plugin-azure-storage.git
RUN npm install https://github.com/NodeBB/nodebb-plugin-write-api.git
ENV NODE_ENV=production \
daemon=false \
silent=false
EXPOSE 4567
### Below env vars to be set prior running the container
## Note:
## password won't get overwritten if you run
## 'node app --setup' multiple times
## Default username is admin
########################################################
# ENV database=mongo
# ENV secret="1d57ba64-86d4-43ff-bd10-f6e9e0782899"
# ENV url="http://0.0.0.0:4567"
# ENV mongo__host="http://127.0.0.1"
# ENV mongo__database="nodebb"
# ENV admin__password="nodebbAdminPassword00"
########################################################
CMD node ./nodebb setup ; node ./nodebb start