Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 566e564e77 | |||
| 66b927f8e0 | |||
| 4fd2f73dfe | |||
| d175700588 | |||
| 7a785a8232 | |||
| 0c6a661fb8 | |||
| d428dbab16 | |||
| 9cc4bc497e | |||
| e1f496dd3b | |||
| cb70c06352 | |||
| ff11abc459 | |||
| 81ea75e54c |
@ -26,7 +26,7 @@ steps:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: security-scan
|
- name: security-scan
|
||||||
image: aquasec/trivy:latest
|
image: aquasec/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
|
||||||
|
|
||||||
|
|||||||
10
Dockerfile
10
Dockerfile
@ -1,9 +1,9 @@
|
|||||||
# Base-Image
|
# Base-Image
|
||||||
FROM ubuntu:latest
|
FROM alpine
|
||||||
|
|
||||||
# Pakete installieren
|
# Pakete installieren
|
||||||
RUN apt-get update
|
RUN apk update && apk upgrade
|
||||||
RUN apt-get install -y build-essential gcc curl vim net-tools
|
RUN apk add --no-cache build-base curl vim net-tools
|
||||||
|
|
||||||
# Arbeitsverzeichnis setzen
|
# Arbeitsverzeichnis setzen
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@ -17,6 +17,10 @@ RUN gcc -o deployment deployment.c
|
|||||||
# Verzeichnis für Ausgabe anlegen
|
# Verzeichnis für Ausgabe anlegen
|
||||||
RUN mkdir /output
|
RUN mkdir /output
|
||||||
|
|
||||||
|
# User hinzufügen
|
||||||
|
RUN adduser -D appuser
|
||||||
|
USER appuser
|
||||||
|
|
||||||
# Ausgabe wird ins Container-Dateisystem geschrieben
|
# Ausgabe wird ins Container-Dateisystem geschrieben
|
||||||
ENTRYPOINT ["/bin/bash", "-c"]
|
ENTRYPOINT ["/bin/bash", "-c"]
|
||||||
CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"]
|
CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"]
|
||||||
Loading…
x
Reference in New Issue
Block a user