Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axelsbranch #12

Merged
merged 2 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 3 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
# Använd ett .NET Core SDK-baserat image för att bygga och testa
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

# Kopiera allt från projektet till arbetskatalogen
COPY . .

# Bygg applikationen
RUN dotnet build -c Release

# Kör xUnit-tester
RUN dotnet test

# Ange arbetskatalogen för att köra applikationen
WORKDIR /app/bin/Release/net8.0
WORKDIR /app

# Ange entrypoint för att köra applikationen
CMD ["dotnet", "gruppuppgiftCI_CD.dll"]
COPY ./bin/Debug/net8.0/ .

CMD ["dotnet", "gruppuppgiftCI_CD.dll"]
1 change: 1 addition & 0 deletions Personummer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static bool Validera(string personnummer)
}
}


// Ytterligare kontroller för personnummer kan läggas till här.

return true;
Expand Down