forked from freudenreichan/EinfuehrungInDocker_Pipeline2
This commit is contained in:
parent
f3769cb32c
commit
d525fcaaf4
@ -3,7 +3,6 @@ FROM alpine:3.20 AS builder
|
||||
RUN apk add --no-cache build-base
|
||||
WORKDIR /app
|
||||
COPY deployment.c .
|
||||
# Wir bauen hier noch "normal"
|
||||
RUN gcc -o deployment deployment.c
|
||||
|
||||
# RUNTIME STAGE
|
||||
@ -12,6 +11,5 @@ WORKDIR /app
|
||||
COPY --from=builder /app/deployment .
|
||||
RUN mkdir /output
|
||||
|
||||
# Wir nutzen sh (Standard in Alpine), da bash extra installiert werden müsste
|
||||
ENTRYPOINT ["/bin/sh", "-c"]
|
||||
CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"]
|
||||
Loading…
x
Reference in New Issue
Block a user