shiveshnavin commited on
Commit
8533410
·
1 Parent(s): cceaa96

Update dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -2
  2. app.js +4 -4
Dockerfile CHANGED
@@ -4,7 +4,8 @@ EXPOSE 8083 7860 3000
4
  RUN mkdir /public || true
5
  RUN mkdir /out || true
6
  RUN chmod -R 777 /public /out /uploads || true && chmod 666 /index.html || true
7
- # COPY app.js .
 
8
  COPY package.ci.json package.json
9
- # Run as root (default in most base images, but ensure no USER directive is set)
10
  ENTRYPOINT ["npm", "start"]
 
4
  RUN mkdir /public || true
5
  RUN mkdir /out || true
6
  RUN chmod -R 777 /public /out /uploads || true && chmod 666 /index.html || true
7
+
8
+ COPY . .
9
  COPY package.ci.json package.json
10
+
11
  ENTRYPOINT ["npm", "start"]
app.js CHANGED
@@ -611,10 +611,10 @@ app.get('/', (req, res) => {
611
  res.sendFile(indexFile);
612
  });
613
 
614
- // writeFileSync(
615
- // indexFile,
616
- // readFileSync(indexFile).toString().replace('___ORACLE_API_BASE___', oracleAPI)
617
- // );
618
 
619
  export default app;
620
 
 
611
  res.sendFile(indexFile);
612
  });
613
 
614
+ writeFileSync(
615
+ indexFile,
616
+ readFileSync(indexFile).toString().replace('___ORACLE_API_BASE___', oracleAPI)
617
+ );
618
 
619
  export default app;
620