aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorAstound <kirito@disroot.org>2025-01-20 07:17:10 +0800
committerAstound <kirito@disroot.org>2025-01-20 07:17:10 +0800
commitda120ee0be00ee33b05281c8c74d604574ded191 (patch)
treec4321823f34b256e7fb569c1ca54f39ad46f4fcf /Dockerfile
parent1673c569e64f1b7de8899841a8e84e26e4dc5939 (diff)
downloadhyperbola-mirror-da120ee0be00ee33b05281c8c74d604574ded191.tar.lz
hyperbola-mirror-da120ee0be00ee33b05281c8c74d604574ded191.tar.xz
hyperbola-mirror-da120ee0be00ee33b05281c8c74d604574ded191.zip
update trivy actionHEADmaster
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 87e8ba2..587b555 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,12 +4,14 @@ RUN pacman -Syu --noconfirm && pacman -S --noconfirm \
nginx rsync cronie util-linux findutils && \
pacman -Scc --noconfirm
-RUN mkdir /srv/repo
+# Create the /srv/repo directory to store repository data
+RUN mkdir -p /srv/repo
COPY entrypoint.bash /
RUN chmod u+x /entrypoint.bash
-
+# Define a mount point for the repository data
VOLUME /srv/repo
+# Expose port 80 for the web server
EXPOSE 80
ENTRYPOINT ["/entrypoint.bash"]