docker
This commit is contained in:
12
DEV1.1/TP12/Dockerfile
Normal file
12
DEV1.1/TP12/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM gcc:13 AS build
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN gcc -ansi -pedantic tests.c -o app
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/app .
|
||||
CMD ["./app"]
|
||||
|
||||
# sudo docker build -t app-c
|
||||
# sudo docker run app-c
|
||||
Reference in New Issue
Block a user