This repository has been archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from epapbak/dockerfile-setup
Dockerfile setup
Showing
5 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM registry.access.redhat.com/ubi9-minimal:latest | ||
|
||
ENV CONFIG_PATH=/dvo-extractor/config.yaml \ | ||
VENV=/dvo-extractor-venv \ | ||
HOME=/dvo-extractor \ | ||
REQUESTS_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt | ||
|
||
WORKDIR $HOME | ||
|
||
COPY . $HOME | ||
|
||
ENV PATH="$VENV/bin:$PATH" | ||
|
||
RUN microdnf install --nodocs -y python3.11 unzip tar git-core && \ | ||
python3.11 -m venv $VENV && \ | ||
curl -ksL https://certs.corp.redhat.com/certs/2015-IT-Root-CA.pem -o /etc/pki/ca-trust/source/anchors/RH-IT-Root-CA.crt && \ | ||
curl -ksL https://certs.corp.redhat.com/certs/2022-IT-Root-CA.pem -o /etc/pki/ca-trust/source/anchors/2022-IT-Root-CA.pem && \ | ||
update-ca-trust && \ | ||
pip install --no-cache-dir -U pip && \ | ||
pip install --no-cache-dir . && \ | ||
microdnf remove -y git-core && \ | ||
microdnf clean all && \ | ||
rpm -e --nodeps sqlite-libs krb5-libs libxml2 readline pam openssh openssh-clients && \ | ||
chmod -R g=u $HOME $VENV /etc/passwd && \ | ||
chgrp -R 0 $HOME $VENV | ||
|
||
|
||
USER 1001 | ||
|
||
CMD ["sh", "-c", "dvo-extractor $CONFIG_PATH"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters