mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-25 06:05:37 +03:00
improvements
This commit is contained in:
parent
496166bbc5
commit
4fa3a5966e
3
Makefile
3
Makefile
@ -165,6 +165,9 @@ ecosystem-testrail-images:
|
|||||||
ecosystem-torrserver-images:
|
ecosystem-torrserver-images:
|
||||||
cd `pwd`/linux/ecosystem/torrserver && pwd && make
|
cd `pwd`/linux/ecosystem/torrserver && pwd && make
|
||||||
|
|
||||||
|
ecosystem-electron-release-server-images:
|
||||||
|
cd `pwd`/linux/ecosystem/electron-release-server && pwd && make
|
||||||
|
|
||||||
ecosystem-nodejs-images:
|
ecosystem-nodejs-images:
|
||||||
cd `pwd`/linux/ecosystem/nodejs/current && pwd && make
|
cd `pwd`/linux/ecosystem/nodejs/current && pwd && make
|
||||||
cd `pwd`/linux/ecosystem/nodejs/lts && pwd && make
|
cd `pwd`/linux/ecosystem/nodejs/lts && pwd && make
|
||||||
|
@ -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/ /usr/src/electron-release-server
|
||||||
COPY --from=bootstrap /tmp/electron-release-server/config/docker.js /usr/src/electron-release-server/config/local.js
|
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
|
EXPOSE 80
|
||||||
|
|
||||||
CMD [ "npm", "start" ]
|
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
|
||||||
|
CMD ["docker-entrypoint.sh"]
|
Loading…
Reference in New Issue
Block a user