Skip to content

Commit

Permalink
chores:update-docker for access management (#116)
Browse files Browse the repository at this point in the history
* add dockerfile

* add old stuff
  • Loading branch information
andreasisnes authored Nov 29, 2024
1 parent dfee80f commit 300a84b
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/apps/Altinn.AccessManagement/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build
WORKDIR /app
WORKDIR /src
COPY src/ .
WORKDIR /src/apps/Altinn.AccessManagement/src/Altinn.AccessManagement
RUN dotnet publish -c Release -o /app

# Copy everything and build
COPY . .
RUN dotnet restore

# Copy everything else and build
RUN dotnet publish -c Release -o out ./src/Altinn.AccessManagement/Altinn.AccessManagement.csproj

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS final
EXPOSE 5110
WORKDIR /app
COPY --from=build /app/out .
COPY --from=build /app .

# setup the user and group
# the user will have no password, using shell /bin/false and using the group dotnet
Expand Down

0 comments on commit 300a84b

Please sign in to comment.