Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
acn-dgopa authored Aug 15, 2023
1 parent 1ab3cd2 commit 57c0f0e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Building the auditlog api
FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine AS build
COPY src/Altinn.Auth.AuditLog ./Altinn.Auth.AuditLog
WORKDIR Altinn.Auth.AuditLog/
RUN dotnet build Altinn.Auth.AuditLog.csproj -c Release -o /app_output
RUN dotnet publish Altinn.Auth.AuditLog.csproj -c Release -o /app_output

# Building the final image
FROM mcr.microsoft.com/dotnet/aspnet:7.0-alpine AS final
EXPOSE 80
WORKDIR /app
COPY --from=build /app_output .

ENTRYPOINT ["dotnet", "Altinn.Auth.AuditLog.dll"]

0 comments on commit 57c0f0e

Please sign in to comment.