deployment stuff

This commit is contained in:
2026-02-21 12:01:36 -08:00
parent fb1eea6d08
commit 531c6258e6
9 changed files with 174 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
bin/
obj/
design/
*.user
.vs/
+17
View File
@@ -0,0 +1,17 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /src
COPY api.csproj ./
RUN dotnet restore api.csproj
COPY . ./
RUN dotnet publish api.csproj -c Release -o /app/publish --no-restore
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
WORKDIR /app
COPY --from=build /app/publish .
ENV ASPNETCORE_URLS=http://+:8005
EXPOSE 8005
ENTRYPOINT ["dotnet", "api.dll"]
+3 -3
View File
@@ -1,11 +1,11 @@
{
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Port=3306;Database=win_student_goal_tracker;Uid=root;Pwd=change_me;"
"DefaultConnection": "Server=localhost;Port=3306;Database=winstudentgoaltracker;Uid=root;Pwd=change_me;"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Port=3306;Database=win_student_goal_tracker;Uid=root;Pwd=change_me;"
"DefaultConnection": "Server=localhost;Port=3306;Database=winstudentgoaltracker;Uid=root;Pwd=change_me;"
},
"Jwt": {
"Key": "super_secret_key_change_me_in_production_123!",