Skip to content

Commit

Permalink
feat: lint Dockerfile and add opencontainers labels
Browse files Browse the repository at this point in the history
  • Loading branch information
MatisseB committed Jun 25, 2024
1 parent d8de25c commit d3f5e85
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ ENV SYSROOT=/dummy
RUN apk update && apk add --no-cache \
g++ \
musl-dev \
pkgconfig \
libressl-dev \
protobuf-dev \
protoc
protobuf-dev

ENV PROTOC=/usr/bin/protoc

Expand All @@ -23,16 +21,16 @@ COPY . /wd
RUN cargo build --bin lgc --release

# -----
FROM cgr.dev/chainguard/wolfi-base

ARG description="Easily build Detection-as-Code pipelines for modern security tools (SIEM, EDR, XDR, ...)"
LABEL name="lgc" \
maintainer="[email protected]" \
vendor="LogCraft" \
license="MPL-2.0" \
summary="Detection-as-Code CLI" \
description=${description}
LABEL org.opencontainers.image.description ${description}
FROM cgr.dev/chainguard/wolfi-base:latest

LABEL org.opencontainers.image.title "LogCraft CLI"
LABEL org.opencontainers.image.authors "LogCraft <[email protected]>"
LABEL org.opencontainers.image.url "https://github.com/LogCraftIO/logcraft-cli/pkgs/container/logcraft-cli"
LABEL org.opencontainers.image.documentation "https://docs.logcraft.io/"
LABEL org.opencontainers.image.source "https://github.com/LogCraftIO/logcraft-cli"
LABEL org.opencontainers.image.vendor "LogCraft"
LABEL org.opencontainers.image.licenses "MPL-2.0"
LABEL org.opencontainers.image.description "Easily build Detection-as-Code pipelines for modern security tools (SIEM, EDR, XDR, ...)"

WORKDIR /wd
RUN chown -R nonroot.nonroot /wd/
Expand Down

0 comments on commit d3f5e85

Please sign in to comment.