-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 954 Bytes
/
Dockerfile
File metadata and controls
32 lines (23 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Use AlmaLinux 8 as a base, similar to CentOS 8
FROM almalinux:8
# Set DEBIAN_FRONTEND to noninteractive for any tools that might prompt
ARG DEBIAN_FRONTEND=noninteractive
# Install necessary tools
RUN dnf install -y --allowerasing dnf-utils createrepo_c tar findutils coreutils curl && \
dnf clean all
# Set a working directory inside the container
WORKDIR /app
# Copy the custom yum.conf
COPY yum.conf /app/yum.conf
# Copy repository definition files into a staging area in /app
COPY ./yum.repos.d/ /app/yum.repos.d/
# Copy the entrypoint script and make it executable
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
# Define the base path for repositories as an environment variable
ENV REPO_BASE_PATH /home/var/www/html
# Set the entrypoint
ENTRYPOINT ["/app/entrypoint.sh"]
# CMD is not strictly necessary if ENTRYPOINT does all the work and exits,
# but can be useful for debugging or overriding.
CMD ["--help"]