forked from freudenreichan/EinfuehrungInDocker_Pipeline2
This commit is contained in:
parent
46b36f449c
commit
2f88d401b4
@ -1,6 +1,9 @@
|
||||
# Base-Image
|
||||
FROM alpine:latest AS builder
|
||||
|
||||
# Pakete installieren
|
||||
RUN apk add --no-cache build-base
|
||||
|
||||
# Arbeitsverzeichnis setzen
|
||||
WORKDIR /app
|
||||
|
||||
@ -13,8 +16,8 @@ RUN gcc -o deployment deployment.c
|
||||
# Stage 2
|
||||
FROM alpine:latest
|
||||
|
||||
# Pakete installieren
|
||||
RUN apk add --no-cache build-base
|
||||
RUN apk upgrade --no-cache
|
||||
|
||||
RUN addgroup -S stdgroup && adduser -S stduser -G stdgroup
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user