From fa1482275535b0c9360ec80829132cbcd03c83d5 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sat, 13 Aug 2022 13:08:43 -0400 Subject: Add port expose directives to Dockerfiles This is useful as documentation to the user, but can be necessary to work with some docker-compose setups. Signed-off-by: Malfurious --- docker/Dockerfile.cgit | 1 + docker/Dockerfile.gitolite | 1 + 2 files changed, 2 insertions(+) diff --git a/docker/Dockerfile.cgit b/docker/Dockerfile.cgit index 7108420..768a53d 100644 --- a/docker/Dockerfile.cgit +++ b/docker/Dockerfile.cgit @@ -12,4 +12,5 @@ RUN pacman -Syu --needed --noconfirm apache cgit COPY httpd.conf /etc/httpd/conf/httpd.conf COPY cgitrc /etc/cgitrc +EXPOSE 80 CMD ["/usr/bin/httpd", "-DFOREGROUND"] diff --git a/docker/Dockerfile.gitolite b/docker/Dockerfile.gitolite index a1ba275..f953c57 100644 --- a/docker/Dockerfile.gitolite +++ b/docker/Dockerfile.gitolite @@ -25,4 +25,5 @@ VOLUME /var/lib/gitolite RUN ssh-keygen -A VOLUME /etc/ssh +EXPOSE 22 CMD ["/usr/bin/sshd", "-D"] -- cgit v1.2.3