Skip to content

Commit 4402938

Browse files
committed
Add Containerfile
1 parent edb88fd commit 4402938

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Containerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM registry.access.redhat.com/ubi9/ubi
2+
3+
# Install required packages
4+
RUN dnf -y install \
5+
python3 \
6+
python3-pip \
7+
&& dnf clean all
8+
9+
# Install ansible and ansible-lint
10+
RUN pip3 install --no-cache-dir \
11+
ansible \
12+
ansible-lint
13+
14+
# Copy application files to eco-ci-cd folder
15+
COPY . ./eco-ci-cd
16+
17+
WORKDIR /eco-ci-cd
18+
19+
# Install requirements
20+
RUN ansible-galaxy collection install -r requirements.yml
21+
22+
# Set entrypoint to bash
23+
ENTRYPOINT ["/bin/bash"]

0 commit comments

Comments
 (0)