Compare commits

...

2 Commits
main ... main

Author SHA1 Message Date
2ca0dc5474 .drone.yml aktualisiert 2026-04-11 11:44:37 +00:00
dc6b1a3454 Dockerfile aktualisiert 2026-04-11 11:27:50 +00:00
2 changed files with 8 additions and 6 deletions

View File

@ -26,7 +26,7 @@ steps:
fi fi
- name: security-scan - name: security-scan
image: aquasec/trivy:latest image: ghcr.io/aquasecurity/trivy:0.69.3
commands: commands:
- trivy image --input image.tar --severity HIGH,CRITICAL --exit-code 1 - trivy image --input image.tar --severity HIGH,CRITICAL --exit-code 1

View File

@ -1,9 +1,8 @@
# Base-Image # Base-Image
FROM ubuntu:latest FROM ubuntu:latest AS build
# Pakete installieren # Pakete installieren
RUN apt-get update RUN apt-get update && apt-get install -y build-essential
RUN apt-get install -y build-essential gcc curl vim net-tools
# Arbeitsverzeichnis setzen # Arbeitsverzeichnis setzen
WORKDIR /app WORKDIR /app
@ -14,9 +13,12 @@ COPY . .
# Code kompilieren # Code kompilieren
RUN gcc -o deployment deployment.c RUN gcc -o deployment deployment.c
FROM alpine:latest
WORKDIR /app
# Verzeichnis für Ausgabe anlegen # Verzeichnis für Ausgabe anlegen
RUN mkdir /output RUN mkdir /output
COPY --from=build /app/deployment .
# Ausgabe wird ins Container-Dateisystem geschrieben # Ausgabe wird ins Container-Dateisystem geschrieben
ENTRYPOINT ["/bin/bash", "-c"] ENTRYPOINT ["/bin/sh", "-c"]
CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"] CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"]