-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibde265.Dockerfile
More file actions
41 lines (33 loc) · 1.28 KB
/
libde265.Dockerfile
File metadata and controls
41 lines (33 loc) · 1.28 KB
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
41
ARG version=1.0.11
ARG base=debian:bullseye
# Build libde265.
FROM $base as builder
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update && \
apt-get install --no-install-recommends -y \
ca-certificates pkg-config \
cmake build-essential curl git \
&& rm -rf /var/lib/apt/lists/*
ARG version
RUN git clone --recursive --branch "v$version" --depth 1 https://github.com/strukturag/libde265.git /de265/src
WORKDIR /de265/src/build
RUN cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/de265/lib -DENABLE_DECODER=off -DENABLE_ENCODER=off ..
RUN make -j4 && make install
# Keep track of the build image.
RUN echo "$base" > /de265/base-image
# Assemble results.
FROM scratch
COPY --from=builder /de265/base-image .
COPY --from=builder /de265/src/COPYING .
COPY --from=builder /de265/lib .
ARG version
ARG base
ARG date
ARG base
LABEL org.opencontainers.artifact.title="libde265 $version"
LABEL org.opencontainers.artifact.description="libde265 $version built from $base"
LABEL org.opencontainers.artifact.created="$date"
LABEL org.opencontainers.image.version="$version"
LABEL org.opencontainers.image.authors="Markus Mayer <sunsided@users.noreply.github.com>"
LABEL org.opencontainers.image.source="https://github.com/sunsided/imgproc-libs-docker"
LABEL org.opencontainers.image.created="$date"