Skip to content

Commit

Permalink
Chore/cleansing (#20)
Browse files Browse the repository at this point in the history
* chore: fixing docker build warnings
* chore: guarantee only Safe Rust is used
  • Loading branch information
MatisseB authored Jul 23, 2024
1 parent 24b48e6 commit 84d5e3f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -----
FROM docker.io/library/rust:1.78-alpine as builder
FROM docker.io/library/rust:1.78-alpine AS builder

# Set `SYSROOT` to a dummy path (default is /usr) because pkg-config-rs *always*
# links those located in that path dynamically but we want static linking, c.f.
Expand All @@ -22,14 +22,14 @@ RUN cargo build --bin lgc --release
# -----
FROM cgr.dev/chainguard/wolfi-base:latest

LABEL org.opencontainers.image.title "LogCraft CLI"
LABEL org.opencontainers.image.authors "LogCraft <dev@logcraft.io>"
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, ...)"
LABEL org.opencontainers.image.title="LogCraft CLI"
LABEL org.opencontainers.image.authors="LogCraft <dev@logcraft.io>"
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 /srv/workspace
RUN chown -R nonroot.nonroot /srv/workspace
Expand Down
2 changes: 1 addition & 1 deletion src/bin/lgc.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2023 LogCraft, SAS.
// SPDX-License-Identifier: MPL-2.0

#![warn(unused_extern_crates)]
#![forbid(unsafe_code)]

use anyhow::Result;
use clap::builder::styling;
Expand Down

0 comments on commit 84d5e3f

Please sign in to comment.