forked from freudenreichan/EinfuehrungInDocker_Pipeline2
This commit is contained in:
parent
fc787ee48b
commit
0b4fb9b862
@ -1,11 +1,11 @@
|
||||
# Erster Schritt: App bauen
|
||||
FROM alpine:3.19 AS build
|
||||
FROM alpine:3.21 AS build
|
||||
RUN apk add --no-cache gcc musl-dev
|
||||
COPY deployment.c .
|
||||
RUN gcc -o deployment deployment.c
|
||||
|
||||
# Finales Image: Nur die Binary mitnehmen
|
||||
FROM alpine:3.19
|
||||
FROM alpine:3.21
|
||||
|
||||
# Neuer User wegen Sicherheit
|
||||
RUN adduser -D appuser
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user