better config implementation from ENV or json file.

using new environment;
params passed as docker-compose params
This commit is contained in:
Dobromir Popov
2021-08-22 23:53:00 +03:00
parent 28ccaba895
commit 913b1a4f32
11 changed files with 11026 additions and 1264 deletions

View File

@@ -1,7 +1,20 @@
FROM node:8
FROM node:10
# set user
#RUN groupadd -r nodejs && useradd -m -r -g -s /bin/bash nodejs nodejs
#USER nodejs
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
ENV NODE_ENV mitko
CMD npm start
# CMD [“dumb-init”, “node”, dht.js”]
# CMD ["npm","run", "pm2"]
EXPOSE 2080