Dockerfile aktualisiert
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Peter Kessler 2026-04-11 11:58:57 +00:00
parent df25622098
commit 947045c0c0

View File

@ -1,8 +1,8 @@
# Base-Image
FROM alpine:3.22 AS builder
# Pakete installieren
RUN apk add --no-cache gcc musl-dev
# Pakete installieren + Updates einspielen
RUN apk upgrade --no-cache && apk add --no-cache gcc musl-dev
# Arbeitsverzeichnis setzen
WORKDIR /app
@ -17,6 +17,9 @@ RUN gcc -O2 -o deployment deployment.c
# Base-Image
FROM alpine:3.22
# Sicherheitsupdates einspielen
RUN apk upgrade --no-cache
# Arbeitsverzeichnis setzen
WORKDIR /app
@ -35,10 +38,6 @@ VOLUME ["/output"]
# nicht als root laufen
USER appuser
#update
apt update && apt upgrade -y
# Healthcheck
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD test -s /output/output.txt || exit 1