Compare commits

...

7 Commits
main ... main

Author SHA1 Message Date
4b4bcbf56e Update Dockerfile 2026-04-11 12:01:12 +00:00
3df50360e6 Update Dockerfile 2026-04-11 11:55:45 +00:00
e7304fab26 Update Dockerfile 2026-04-11 11:55:05 +00:00
34728990c3 Update Dockerfile 2026-04-11 11:51:08 +00:00
5b71c9a2b7 Update .drone.yml 2026-04-11 11:50:08 +00:00
b9bea866a3 Update Dockerfile 2026-04-11 11:45:31 +00:00
ff4d035d4f Update Dockerfile 2026-04-11 11:43:27 +00:00
2 changed files with 7 additions and 6 deletions

View File

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

View File

@ -1,15 +1,15 @@
# Base-Image
FROM ubuntu:latest
FROM alpine AS build-env
# Pakete installieren
RUN apt-get update
RUN apt-get install -y build-essential gcc curl vim net-tools
RUN apk add --no-cache build-base
# Arbeitsverzeichnis setzen
WORKDIR /app
# alles kopieren
COPY . .
COPY deployment.c .
# Code kompilieren
RUN gcc -o deployment deployment.c
@ -17,6 +17,7 @@ RUN gcc -o deployment deployment.c
# Verzeichnis für Ausgabe anlegen
RUN mkdir /output
# Ausgabe wird ins Container-Dateisystem geschrieben
ENTRYPOINT ["/bin/bash", "-c"]
ENTRYPOINT ["/app/deployment"]
CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"]