Skip to content

Commit

Permalink
Many ports exposed
Browse files Browse the repository at this point in the history
  • Loading branch information
Snafkin547 committed Aug 12, 2024
1 parent df60421 commit 70a6867
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,12 @@ ENV OMPI_ALLOW_RUN_AS_ROOT=1
ENV OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
ENV OMPI_MCA_routed=direct

# Set OpenMPI environment variables
ENV OMPI_MCA_oob_tcp_dynamic_ports=10000-10009 \
OMPI_MCA_btl_tcp_port_min_v4=10000 \
OMPI_MCA_btl_tcp_port_range_v4=10

# Expose the necessary ports
EXPOSE 10000-10009
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]

0 comments on commit 70a6867

Please sign in to comment.