Skip to content

Commit 1b8f871

Browse files
authored
Add: Missing EXPOSE to Oracle and RHEL Dockerfiles (#59)
1 parent e55399b commit 1b8f871

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

operating_systems/oraclelinux/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ RUN if [ "$UPDATED" = true ]; then yum upgrade -y && yum clean all; fi \
1111
&& (ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N "" || true) \
1212
&& (ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" || true)
1313

14-
CMD [ "/usr/sbin/sshd", "-D" ]
14+
CMD [ "/usr/sbin/sshd", "-D" ]
15+
16+
EXPOSE 22

operating_systems/rhel/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ RUN if [ "$UPDATED" = true ]; then \
2020
&& ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""
2121

2222
CMD [ "/usr/sbin/sshd", "-D" ]
23+
24+
EXPOSE 22

0 commit comments

Comments
 (0)