Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ jobs:
run: |
cargo build
mkdir -p binaries
# Same binary for both arch variants — scan-only, not for deployment
cp target/debug/zeph binaries/zeph-amd64
cp target/debug/zeph binaries/zeph-arm64
env:
Expand All @@ -153,14 +154,15 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@0.34.0
with:
image-ref: zeph:local
format: sarif
output: trivy-results.sarif
severity: CRITICAL,HIGH
ignore-unfixed: true
exit-code: '1'
limit-severities-for-sarif: true
- name: Upload Trivy results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v4
if: always()
Expand Down
15 changes: 5 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
FROM container-registry.oracle.com/os/oraclelinux:9-slim
FROM debian:bookworm-slim

ARG TARGETARCH

RUN microdnf update -y && \
(microdnf module enable nodejs:25 -y 2>/dev/null || \
microdnf module enable nodejs:24 -y 2>/dev/null || \
microdnf module enable nodejs:22 -y 2>/dev/null || \
microdnf module enable nodejs:20 -y) && \
microdnf install -y \
shadow-utils ca-certificates \
curl wget git jq file findutils iproute procps-ng systemd util-linux \
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl wget git jq file findutils iproute2 procps \
nodejs npm python3 && \
microdnf clean all && \
rm -rf /var/lib/apt/lists/* && \
useradd --system --create-home --shell /sbin/nologin zeph

WORKDIR /app
Expand Down
19 changes: 5 additions & 14 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ FROM rust:1.88-slim AS builder

ARG CARGO_FEATURES=""

RUN apt-get update && apt-get install -y --no-install-recommends \
pkg-config libssl-dev && \
rm -rf /var/lib/apt/lists/*

WORKDIR /build

# Cache dependencies in a separate layer
Expand All @@ -28,18 +24,13 @@ RUN touch src/main.rs && \
for d in crates/*/src/lib.rs; do touch "$d"; done && \
cargo build --release ${CARGO_FEATURES:+--features $CARGO_FEATURES}

FROM container-registry.oracle.com/os/oraclelinux:9-slim
FROM debian:bookworm-slim

RUN microdnf update -y && \
(microdnf module enable nodejs:25 -y 2>/dev/null || \
microdnf module enable nodejs:24 -y 2>/dev/null || \
microdnf module enable nodejs:22 -y 2>/dev/null || \
microdnf module enable nodejs:20 -y) && \
microdnf install -y \
shadow-utils ca-certificates \
curl wget git jq file findutils iproute procps-ng systemd util-linux \
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl wget git jq file findutils iproute2 procps \
nodejs npm python3 && \
microdnf clean all && \
rm -rf /var/lib/apt/lists/* && \
useradd --system --create-home --shell /sbin/nologin zeph

WORKDIR /app
Expand Down
Loading