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.
This commit is contained in:
2021-01-25 22:00:12 +01:00
parent c87e74ea1d
commit bd1017ba92

View File

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