forked from freudenreichan/EinfuehrungInDocker_Pipeline2
This commit is contained in:
parent
12883602f8
commit
aad5f91d49
@ -1,7 +1,7 @@
|
||||
# ── Stage 1: Build ──────────────────────────────────────────────────────────
|
||||
#schlankes Base-Images
|
||||
FROM alpine:3.19 AS builder
|
||||
|
||||
# Nur das nötigste zum Kompilieren
|
||||
# Nur das nötigste
|
||||
RUN apk add --no-cache gcc musl-dev
|
||||
|
||||
WORKDIR /app
|
||||
@ -9,9 +9,6 @@ COPY deployment.c .
|
||||
|
||||
RUN gcc -o deployment deployment.c -static
|
||||
|
||||
# ── Stage 2: Runtime ─────────────────────────────────────────────────────────
|
||||
FROM alpine:3.19
|
||||
|
||||
# Nicht-root User anlegen
|
||||
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user