Upload files to "MultiStage"
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
FROM alpine:latest AS mybuildstage
|
||||||
|
RUN apk add --no-cache build-base
|
||||||
|
COPY Message.c .
|
||||||
|
RUN gcc -o Message Message.c
|
||||||
|
FROM alpine:latest
|
||||||
|
COPY --from=mybuildstage Message .
|
||||||
|
CMD ["./Message"]
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
int main () {
|
||||||
|
printf ("\t Bonjour ! \n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user