nix-statix/Containerfile

28 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2022-05-10 18:11:30 +02:00
# syntax=docker/dockerfile:1.3
2022-10-17 16:54:16 +02:00
FROM docker.io/nixos/nix:2.11.0-amd64
2022-05-10 18:11:30 +02:00
ARG BUILD_DATE
ARG VCS_REF
# as per https://github.com/opencontainers/image-spec/blob/main/annotations.md,
# keep Label Schema labels for backward compatibility.
LABEL description="Container w/ nix + statix" \
org.label-schema.build-date=$BUILD_DATE \
2022-05-10 18:11:30 +02:00
org.label-schema.vcs-url="https://git.dotya.ml/wanderer-containers/nix-statix.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.license=GPL-3.0-or-later \
org.opencontainers.image.title="nix-statix" \
org.opencontainers.image.description="Container w/ nix + statix" \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.authors=wanderer \
org.opencontainers.image.url="https://git.dotya.ml/wanderer-containers/nix-statix.git" \
org.opencontainers.image.source="https://git.dotya.ml/wanderer-containers/nix-statix.git" \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.licenses=GPL-3.0-or-later
2022-05-10 18:11:30 +02:00
RUN nix-channel --update && \
nix-env -iA nixpkgs.statix
# vim: ft=dockerfile