Compare commits

..
2 Commits
Author SHA1 Message Date
lukaszraczylo 946bb7f75d fixup! fixup! fixup! fixes 2026-01-02 20:07:00 +00:00
lukaszraczylo b88c2e1575 fixup! fixup! fixes 2026-01-02 19:47:15 +00:00
2 changed files with 16 additions and 10 deletions
+9 -8
View File
@@ -1,4 +1,7 @@
# Scanning Engine - Background Scanner Worker
ARG TARGETOS
ARG TARGETARCH
FROM alpine:latest
# Install scanning tools and runtime dependencies
@@ -12,14 +15,10 @@ RUN apk add --no-cache \
&& update-ca-certificates
# Install Trivy for container scanning
RUN wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | \
wget -O /tmp/trivy.tar.gz https://github.com/aquasecurity/trivy/releases/latest/download/trivy_$(uname -s)_$(uname -m).tar.gz && \
tar -xzf /tmp/trivy.tar.gz -C /usr/local/bin && \
rm /tmp/trivy.tar.gz && \
chmod +x /usr/local/bin/trivy
RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
# Install Grype for vulnerability scanning
RUN wget -qO - https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin
RUN curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin
# Create non-root user
RUN addgroup -g 1000 scanner && \
@@ -29,8 +28,10 @@ RUN addgroup -g 1000 scanner && \
RUN mkdir -p /data/cache /data/scans && \
chown -R scanner:scanner /data
# Copy binary
COPY gohoarder /usr/local/bin/gohoarder
# Copy binary (from platform-specific path)
ARG TARGETOS
ARG TARGETARCH
COPY ${TARGETOS}/${TARGETARCH}/gohoarder /usr/local/bin/gohoarder
RUN chmod +x /usr/local/bin/gohoarder
# Copy example config
+7 -2
View File
@@ -1,4 +1,7 @@
# Application Engine - GoHoarder Server
ARG TARGETOS
ARG TARGETARCH
FROM alpine:latest
# Install runtime dependencies
@@ -15,8 +18,10 @@ RUN addgroup -g 1000 gohoarder && \
RUN mkdir -p /data/cache /data/metadata && \
chown -R gohoarder:gohoarder /data
# Copy binary
COPY gohoarder /usr/local/bin/gohoarder
# Copy binary (from platform-specific path)
ARG TARGETOS
ARG TARGETARCH
COPY ${TARGETOS}/${TARGETARCH}/gohoarder /usr/local/bin/gohoarder
RUN chmod +x /usr/local/bin/gohoarder
# Copy example config