improvements

This commit is contained in:
Anatolii Zimovskii 2022-03-21 18:48:36 +03:00
parent 496166bbc5
commit 4fa3a5966e
Signed by: stam
GPG Key ID: AA3A575AB99E8469
2 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -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"]