File: Dockerfile

package info (click to toggle)
tuned 2.26.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,280 kB
  • sloc: python: 14,045; sh: 836; makefile: 216; ansic: 178
file content (30 lines) | stat: -rw-r--r-- 689 bytes parent folder | download
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
ARG base=quay.io/centos-bootc/centos-bootc:stream10

FROM $base as build
COPY tuned.spec /tmp/tuned.spec
# This installs our package dependencies, and we want to cache it independently of the rest.
RUN <<EORUN
set -xeuo pipefail
dnf -y install rpm-build
dnf -y builddep /tmp/tuned.spec
EORUN
# Now copy the rest of the source
COPY . /build
WORKDIR /build
RUN <<EORUN
set -xeuo pipefail
mkdir -p /var/roothome
make rpm
mkdir -p /out
mv ~/rpmbuild/RPMS/noarch/tuned-2*.rpm /out
EORUN

FROM $base
RUN --mount=from=build,target=/build,type=bind <<EORUN
set -xeuo pipefail
dnf -y install /build/out/*.rpm
dnf clean all
rm -rf /var/{lib,cache,log}/*
bootc container lint --fatal-warnings
EORUN