From 4fa3a5966ea088bca10743182498a5752b236bb9 Mon Sep 17 00:00:00 2001 From: Anatolii Zimovskii Date: Mon, 21 Mar 2022 18:48:36 +0300 Subject: [PATCH] improvements --- Makefile | 3 +++ linux/ecosystem/electron-release-server/Dockerfile | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6c6aef341..ff888595b 100644 --- a/Makefile +++ b/Makefile @@ -165,6 +165,9 @@ ecosystem-testrail-images: ecosystem-torrserver-images: cd `pwd`/linux/ecosystem/torrserver && pwd && make +ecosystem-electron-release-server-images: + cd `pwd`/linux/ecosystem/electron-release-server && pwd && make + ecosystem-nodejs-images: cd `pwd`/linux/ecosystem/nodejs/current && pwd && make cd `pwd`/linux/ecosystem/nodejs/lts && pwd && make diff --git a/linux/ecosystem/electron-release-server/Dockerfile b/linux/ecosystem/electron-release-server/Dockerfile index ab0a477e7..431d916fc 100644 --- a/linux/ecosystem/electron-release-server/Dockerfile +++ b/linux/ecosystem/electron-release-server/Dockerfile @@ -22,6 +22,15 @@ RUN npm install \ COPY --from=bootstrap /tmp/electron-release-server/ /usr/src/electron-release-server COPY --from=bootstrap /tmp/electron-release-server/config/docker.js /usr/src/electron-release-server/config/local.js +#healthcheck. good practice +HEALTHCHECK --interval=2m --timeout=3s CMD curl -f http://localhost:80/ || exit 1 + +# Add image configuration and scripts +COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh +RUN chmod 755 /usr/bin/docker-entrypoint.sh + +#Final config EXPOSE 80 -CMD [ "npm", "start" ] +ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"] +CMD ["docker-entrypoint.sh"] \ No newline at end of file