From 1ddf8dc9297bb8fc45e531dc75a31c582d0c56bc Mon Sep 17 00:00:00 2001 From: Patrick Ritchie Date: Sun, 3 Dec 2023 00:44:37 -0500 Subject: [PATCH] Added DockerFile (testing) --- docker/Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 docker/Dockerfile diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 00000000..71a5f7e2 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,14 @@ +FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env +WORKDIR /app +COPY . ./ +RUN dotnet restore +RUN dotnet publish --no-self-contained -c Docker -o out -f net6.0 -r linux-x64 /p:VersionSuffix=beta /p:VersionPrefix=0.5.1 /p:Version=0.5.1 /p:FileVersion=0.5.1-beta +FROM mcr.microsoft.com/dotnet/runtime:6.0.6-focal-amd64 +WORKDIR /app +COPY --from=build-env /app/out . +COPY --from=build-env /app/schemas ./schemas/ +COPY --from=build-env /app/styles ./styles/ +EXPOSE 5000/tcp +EXPOSE 7878/tcp +ENTRYPOINT ["dotnet", "agent.dll"] +CMD ["debug"]'