forked from krestomatio/container_builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (28 loc) · 1.24 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
# Ansible managed
FROM quay.io/krestomatio/base-stream
# General variables
ENV IMAGE_NAME=rootfs-creator \
IMAGE_SUMMARY="CentOS 8 Stream minimal based image" \
IMAGE_DESCRIPTION="CentOS 8 Stream minimal based for building rootfs" \
IMAGE_TITLE="CentOS 8 Stream minimal based image"
# Container variables
ENV OS_INSTALL_PKGS="anaconda-tui lorax jq tar policycoreutils" \
CTR_WORKING_DIR=/build
COPY conf/usr/bin /usr/bin/
RUN install-pkgs ${OS_INSTALL_PKGS} && \
mkdir -p ${CTR_WORKING_DIR} && \
fix-permissions -u ${CTR_USER_ID} ${CTR_WORKING_DIR}
RUN fix-permissions -u ${CTR_USER_ID} ${CTR_WORKING_DIR}
WORKDIR $CTR_WORKING_DIR
ENTRYPOINT ["/usr/bin/rootfs-creator"]
# 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,rootfs-creator"