edwagbb commited on
Commit
954d2b3
·
verified ·
1 Parent(s): da60610

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -2,8 +2,8 @@ FROM node:16-alpine
2
  ENV PORT 7860
3
  RUN apk update && apk upgrade && apk add git
4
  RUN chmod -R u+rwx,g+rwx,o+rwx /tmp
5
- CMD git clone $URL /tmp/okok &&\
6
- cd /tmp/okok &&\
7
  npm install &&\
8
- export func_dir=/tmp/okok/functions &&\
9
  npm start || node index.js
 
2
  ENV PORT 7860
3
  RUN apk update && apk upgrade && apk add git
4
  RUN chmod -R u+rwx,g+rwx,o+rwx /tmp
5
+ CMD git clone $remoteUrlWithToken $localrepoPath &&\
6
+ cd $localrepoPath &&\
7
  npm install &&\
8
+ export func_dir=$localrepoPath/functions &&\
9
  npm start || node index.js