From ce41584852ff658c27342af1b32f3439f81bc2e2 Mon Sep 17 00:00:00 2001 From: Jason Fox Date: Thu, 21 Feb 2019 07:59:47 +0000 Subject: [PATCH] Expose Ports JSON Agent Equivalent of https://github.com/telefonicaid/iotagent-ul/pull/342 --- docker/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 07d3af8f..2a2de842 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -71,5 +71,8 @@ RUN \ USER node ENV NODE_ENV=production +# Expose Ports - Default to 4041 for NORTH PORT 4041, 7896 for HTTP PORT +EXPOSE ${IOTA_NORTH_PORT:-4041} ${IOTA_HTTP_PORT:-7896} + ENTRYPOINT ["pm2-runtime", "bin/iotagent-json"] CMD ["-- ", "config.js"]