Update Dockerfile
Browse files- 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 $
|
6 |
-
cd
|
7 |
npm install &&\
|
8 |
-
export func_dir
|
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
|