hyperbola-mirror/Dockerfile

18 lines
444 B
Docker
Raw Normal View History

2024-07-20 19:58:42 -04:00
FROM docker.io/rusian/hyperbola:v0.4.4
2022-02-17 15:23:10 -05:00
RUN pacman -Syu --noconfirm && pacman -S --noconfirm \
2024-07-20 19:58:42 -04:00
nginx rsync cronie util-linux findutils && \
pacman -Scc --noconfirm
2022-02-17 15:23:10 -05:00
2025-01-19 18:17:10 -05:00
# Create the /srv/repo directory to store repository data
RUN mkdir -p /srv/repo
2022-02-17 15:23:10 -05:00
COPY entrypoint.bash /
RUN chmod u+x /entrypoint.bash
2025-01-19 18:17:10 -05:00
# Define a mount point for the repository data
2022-02-17 15:23:10 -05:00
VOLUME /srv/repo
2025-01-19 18:17:10 -05:00
# Expose port 80 for the web server
2022-02-17 15:23:10 -05:00
EXPOSE 80
ENTRYPOINT ["/entrypoint.bash"]