feat: don't require build-args for the labels, just write the directly via --label
This commit is contained in:
parent
af0c32c7ba
commit
84d4b50404
2 changed files with 4 additions and 12 deletions
13
dockerfile
13
dockerfile
|
@ -5,19 +5,14 @@
|
|||
FROM debian:bullseye-slim
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ARG GIT_COMMIT
|
||||
ARG VERSION
|
||||
ARG TIMESTAMP
|
||||
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later" \
|
||||
org.opencontainers.image.base.name="docker.io/debian:bullseye-slim" \
|
||||
org.opencontainers.image.title=buildimage \
|
||||
org.opencontainers.image.source="https://git.schmidl.dev/schtobia/buildimage" \
|
||||
org.opencontainers.image.url="https://git.schmidl.dev/schtobia/buildimage"
|
||||
org.opencontainers.image.title=buildimage
|
||||
|
||||
# editorconfig-checker-disable
|
||||
|
||||
RUN apt update \
|
||||
&& apt install --assume-yes --no-install-recommends \
|
||||
&& apt install --assume-yes --no-install-recommends --quiet \
|
||||
build-essential \
|
||||
dpkg-sig \
|
||||
git \
|
||||
|
@ -30,7 +25,3 @@ RUN useradd -rm builder
|
|||
USER builder
|
||||
|
||||
WORKDIR /workdir
|
||||
|
||||
LABEL org.opencontainers.image.revision=${GIT_COMMIT}
|
||||
LABEL org.opencontainers.image.version=${VERSION}
|
||||
LABEL org.opencontainers.image.created=${TIMESTAMP}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue