generated from CMU-17313Q/NodeBB-f23
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"url": "", | ||
"secret": "c5502d62-84a5-41f1-87eb-ee33a76fb7bc", | ||
"database": "redis", | ||
"redis": { | ||
"host": "", | ||
"port": "", | ||
"password": "", | ||
"database": "0" | ||
}, | ||
"port": "4567" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM node:lts | ||
|
||
RUN mkdir -p /usr/src/app && \ | ||
chown -R node:node /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
RUN apt-get update && apt-get install -y jq | ||
|
||
ARG NODE_ENV | ||
ENV NODE_ENV $NODE_ENV | ||
|
||
COPY --chown=node:node install/package.json /usr/src/app/package.json | ||
|
||
USER node | ||
|
||
RUN npm install && \ | ||
npm cache clean --force | ||
|
||
COPY --chown=node:node . /usr/src/app | ||
|
||
ENV NODE_ENV=production \ | ||
daemon=false \ | ||
silent=false | ||
|
||
EXPOSE 4567 | ||
|
||
CMD ./create_config.sh -n "${SETUP}" && ./nodebb setup || node ./nodebb build; node ./nodebb start |