From bd1017ba92d9cccca721c0ee99c545e5fcb43093 Mon Sep 17 00:00:00 2001 From: LoveIsGrief <loveisgrief@tuta.io> Date: Mon, 25 Jan 2021 22:00:12 +0100 Subject: [PATCH] Docker: Expose only the ports necessary The range of 5k ports should be replaced by a more precise choice of ports. It also pollutes the `docker inspect` output with 5k more lines. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 24427afd14..8d5597cf49 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,7 @@ RUN adduser --system --uid ${I2P_UID} --home /user ${I2P_USER} \ && chown -R ${I2P_USER} ${I2P_PREFIX} \ && chmod -R u+rwx ${I2P_PREFIX} -EXPOSE 7654 7656 7657 7658 4444 6668 8998 7659 7660 4445 15000-20000 +EXPOSE 7654 7656 7657 7658 4444 6668 8998 7659 7660 4445 USER i2p ENTRYPOINT [ "/opt/i2p/i2psvc" ] -- GitLab