forked from krestomatio/container_builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (33 loc) · 1.37 KB
/
Dockerfile
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
33
34
35
36
37
38
39
40
# Ansible managed
FROM quay.io/krestomatio/centos8-stream-minimal
# General variables
ENV IMAGE_NAME=base \
IMAGE_SUMMARY="CentOS 8 Stream minimal based image" \
IMAGE_DESCRIPTION="CentOS 8 Stream minimal based for building other images" \
IMAGE_TITLE="CentOS 8 Stream minimal based image"
# Container variables
ENV CTR_PKG_MGM="microdnf --setopt=tsflags=nodocs -y" \
CTR_USER=default \
CTR_USER_ID="1001" \
CTR_USER_GECOS="Default Application User" \
CTR_GROUP=root \
CTR_GROUP_ID="0" \
CTR_APP="/opt/default" \
CTR_ENTRYPOINT_OPT_PATH=/opt/container-entrypoint.d
ENV OS_INSTALL_PKGS="findutils gzip platform-python"
COPY conf/usr/bin /usr/bin/
COPY conf/container-entrypoint.d ${CTR_ENTRYPOINT_OPT_PATH}/
RUN container-setup
RUN install-pkgs ${OS_INSTALL_PKGS}
ENTRYPOINT ["container-entrypoint"]
# Labels
LABEL name="${IMAGE_NAME}" \
summary="${IMAGE_SUMMARY}" \
description="${IMAGE_DESCRIPTION}" \
maintainer="Job Céspedes Ortiz <[email protected]>" \
org.opencontainers.image.title="${IMAGE_TITLE}" \
org.opencontainers.image.authors="Job Céspedes Ortiz <[email protected]>" \
org.opencontainers.image.description="${IMAGE_DESCRIPTION}" \
io.k8s.description="${IMAGE_DESCRIPTION}" \
io.k8s.display-name="${IMAGE_TITLE}" \
io.openshift.tags="${IMAGE_NAME},centos,centos8-stream"