Skip to content

Commit

Permalink
Dockerfile modified (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Snafkin547 authored Aug 9, 2024
1 parent f4b9a0f commit bc4e6e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ ENV OMPI_ALLOW_RUN_AS_ROOT=1
ENV OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
ENV OMPI_MCA_routed=direct

# Allow SSH service to run in the background
# Create a new user 'ec2-user' for non-root operations
RUN useradd -m ec2-user
USER ec2-user
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]

0 comments on commit bc4e6e5

Please sign in to comment.