From ebb26ae709570a84004c27f34e9307c33ac6b000 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Fri, 19 Apr 2024 00:55:07 +0200 Subject: Add Solution --- solve/Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 solve/Dockerfile (limited to 'solve/Dockerfile') diff --git a/solve/Dockerfile b/solve/Dockerfile new file mode 100644 index 0000000..b4f97b2 --- /dev/null +++ b/solve/Dockerfile @@ -0,0 +1,10 @@ +FROM mcr.microsoft.com/dotnet/sdk:8.0 +WORKDIR /App + +ENV FLAG="CSCG{TESTFLAG}" +# Copy everything +COPY PhotoEditor/ ./ +# Restore as distinct layers +RUN dotnet restore +# Build and publish a release +ENTRYPOINT ["bash", "-c", "echo $FLAG > ./flag && dotnet run --urls=http://0.0.0.0:1024"] \ No newline at end of file -- cgit v1.2.3-71-gd317