From f1a4a5a001c58892a7537d1934c374168aaa8171 Mon Sep 17 00:00:00 2001 From: Andreas Isnes Date: Tue, 8 Oct 2024 13:51:24 +0200 Subject: [PATCH] add dockerfile --- src/apps/Altinn.Authorization.DeployApi/Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/apps/Altinn.Authorization.DeployApi/Dockerfile diff --git a/src/apps/Altinn.Authorization.DeployApi/Dockerfile b/src/apps/Altinn.Authorization.DeployApi/Dockerfile new file mode 100644 index 00000000..3dfa71b4 --- /dev/null +++ b/src/apps/Altinn.Authorization.DeployApi/Dockerfile @@ -0,0 +1,12 @@ +FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build +WORKDIR /app +WORKDIR /src +COPY src/ . +WORKDIR /src/apps/Altinn.Authorization.DeployApi/src/Altinn.Authorization.DeployApi +RUN dotnet publish -c Release -o /app + +FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS final +WORKDIR /app +COPY --from=build /app . + +ENTRYPOINT ["dotnet", "Altinn.Authorization.DeployApi.dll"] \ No newline at end of file