diff options
| author | Louis Burda <quent.burda@gmail.com> | 2024-04-19 00:55:07 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2024-04-19 00:55:07 +0200 |
| commit | ebb26ae709570a84004c27f34e9307c33ac6b000 (patch) | |
| tree | ba83f56ec65986cab387c97b771cd0a26e566c60 /solve/Dockerfile | |
| parent | 84e77e74c8d69b33a25938a46700b67a3e835c88 (diff) | |
| download | cscg24-photoeditor-ebb26ae709570a84004c27f34e9307c33ac6b000.tar.gz cscg24-photoeditor-ebb26ae709570a84004c27f34e9307c33ac6b000.zip | |
Diffstat (limited to 'solve/Dockerfile')
| -rw-r--r-- | solve/Dockerfile | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
