summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2022-08-13 13:08:43 -0400
committerMalfurious <m@lfurio.us>2022-08-13 13:08:43 -0400
commitfa1482275535b0c9360ec80829132cbcd03c83d5 (patch)
tree29d0376a88c63caedceb0a07202b6539bf8c5b53
parent904b4fab582d0def718c0e461e4bb33f4921e6b8 (diff)
downloadsrcnode-fa1482275535b0c9360ec80829132cbcd03c83d5.tar.gz
srcnode-fa1482275535b0c9360ec80829132cbcd03c83d5.zip
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 <m@lfurio.us>
-rw-r--r--docker/Dockerfile.cgit1
-rw-r--r--docker/Dockerfile.gitolite1
2 files changed, 2 insertions, 0 deletions
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"]