buildimage/dockerfile

29 lines
866 B
Text
Raw Normal View History

2023-09-07 11:53:18 +02:00
# SPDX-FileCopyrightText: 2023 Tobias Schmidl
#
# SPDX-License-Identifier: AGPL-3.0-or-later
FROM debian:stable-slim
ARG DEBIAN_FRONTEND=noninteractive
ARG GIT_COMMIT
2023-09-07 12:32:05 +02:00
ARG VERSION
ARG TIMESTAMP
2023-09-07 11:53:18 +02:00
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later" \
org.opencontainers.image.base.name="docker.io/debian:stable-slim" \
2023-09-07 12:32:05 +02:00
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"
2023-09-07 11:53:18 +02:00
LABEL org.opencontainers.image.revision=${GIT_COMMIT}
2023-09-07 12:32:05 +02:00
LABEL org.opencontainers.image.version=${VERSION}
LABEL org.opencontainers.image.created=${TIMESTAMP}
2023-09-07 11:53:18 +02:00
RUN apt update \
&& apt install --assume-yes --no-install-recommends \
build-essential \
2023-09-07 12:32:05 +02:00
git \
2023-09-07 11:53:18 +02:00
&& find /var/lib/apt -type f -delete
2023-09-07 12:32:05 +02:00
VOLUME /workdir
WORKDIR /workdir