|
@@ -3,7 +3,7 @@ ARG git_repo=git@github.com:icruportal/web-sdk-demo.git
|
|
|
ARG branch=master
|
|
|
|
|
|
COPY id_rsa /root/.ssh/
|
|
|
-RUN apk add --no-cache git openssh curl \
|
|
|
+RUN apk add --no-cache git openssh \
|
|
|
&& printf "Host github.com \n\tStrictHostKeyChecking no" > /root/.ssh/config \
|
|
|
&& git clone ${git_repo} \
|
|
|
&& cd web-sdk-demo && git checkout ${branch} \
|
|
@@ -15,6 +15,8 @@ FROM node:alpine
|
|
|
ARG DB_CLUSTER=mongodb1:27017,mongodb2:27018,mongodb3:27019
|
|
|
ARG SERVER_PORT=9005
|
|
|
|
|
|
+RUN apk add --no-cache curl
|
|
|
+
|
|
|
USER node
|
|
|
|
|
|
HEALTHCHECK --start-period=40s --interval=15s --timeout=5s --retries=2 CMD curl -f 127.0.0.1:${SERVER_PORT} || exit 1
|