Update docker file for non preview .net
This commit is contained in:
1 parent
1d4a95bf7d
commit
2bfe914c8f
2 files changed
+108
-18
No files matched your search
+2
-2
@@ -1,10 +1,10 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0-preview AS base
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
|
||||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
EXPOSE 8443
|
EXPOSE 8443
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:10.0-preview AS build
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
# Copy project files first so the restore layer is cached independently of source changes
|
# Copy project files first so the restore layer is cached independently of source changes
|
||||||
|
|||||||
@@ -79,25 +79,115 @@ The app will be available at `http://localhost:8080`.
|
|||||||
```
|
```
|
||||||
BudgetApp/
|
BudgetApp/
|
||||||
├── Components/
|
├── Components/
|
||||||
│ ├── Layout/ # MainLayout, AuthLayout, NavMenu
|
│ ├── Layout/
|
||||||
│ ├── Pages/ # Home, Accounts, Transactions, Categories,
|
│ │ ├── MainLayout.razor
|
||||||
│ │ # Reports, Settings, Help, About, Login, Register
|
│ │ ├── MainLayout.razor.css
|
||||||
|
│ │ ├── AuthLayout.razor
|
||||||
|
│ │ ├── AuthLayout.razor.css
|
||||||
|
│ │ ├── NavMenu.razor
|
||||||
|
│ │ ├── NavMenu.razor.cs
|
||||||
|
│ │ └── NavMenu.razor.css
|
||||||
|
│ ├── Pages/
|
||||||
|
│ │ ├── Home.razor
|
||||||
|
│ │ ├── Home.razor.cs
|
||||||
|
│ │ ├── Home.razor.css
|
||||||
|
│ │ ├── Accounts.razor
|
||||||
|
│ │ ├── Accounts.razor.cs
|
||||||
|
│ │ ├── Transactions.razor
|
||||||
|
│ │ ├── Transactions.razor.cs
|
||||||
|
│ │ ├── Transactions.razor.css
|
||||||
|
│ │ ├── Categories.razor
|
||||||
|
│ │ ├── Categories.razor.cs
|
||||||
|
│ │ ├── Salary.razor
|
||||||
|
│ │ ├── Salary.razor.cs
|
||||||
|
│ │ ├── Salary.razor.css
|
||||||
|
│ │ ├── Reports.razor
|
||||||
|
│ │ ├── Reports.razor.cs
|
||||||
|
│ │ ├── About.razor
|
||||||
|
│ │ ├── About.razor.cs
|
||||||
|
│ │ ├── Settings.razor
|
||||||
|
│ │ ├── Settings.razor.cs
|
||||||
|
│ │ ├── Login.razor
|
||||||
|
│ │ ├── Login.razor.cs
|
||||||
|
│ │ ├── Register.razor
|
||||||
|
│ │ ├── Register.razor.cs
|
||||||
|
│ │ ├── Logout.razor
|
||||||
|
│ │ ├── Logout.razor.cs
|
||||||
|
│ │ ├── Help.razor
|
||||||
|
│ │ ├── NotFound.razor
|
||||||
|
│ │ ├── Error.razor
|
||||||
│ ├── ToastContainer.razor
|
│ ├── ToastContainer.razor
|
||||||
│ └── ToastValidator.razor
|
│ ├── ToastContainer.razor.cs
|
||||||
├── Data/ # EF Core entities, DbContext, Identity user
|
│ ├── ToastContainer.razor.css
|
||||||
├── Migrations/ # EF Core migrations (SQLite)
|
│ ├── ToastValidator.razor
|
||||||
├── Services/ # AccountService, TransactionService, CategoryService,
|
│ ├── ToastValidator.razor.cs
|
||||||
│ # DashboardService, ToastService, AppState
|
│ └── _Imports.razor
|
||||||
└── wwwroot/
|
├── Services/
|
||||||
├── app.css # Global styles
|
│ ├── DashboardService.cs
|
||||||
└── js/
|
│ ├── ToastService.cs
|
||||||
└── chart-interop.js # Chart.js interop (line, doughnut, bar charts)
|
│ ├── AppState.cs
|
||||||
|
│ ├── Models/
|
||||||
|
│ │ ├── ChartData.cs
|
||||||
|
│ │ ├── ChartDataset.cs
|
||||||
|
│ │ └── DashboardData.cs
|
||||||
|
├── Program.cs
|
||||||
|
├── wwwroot/
|
||||||
|
│ ├── app.css
|
||||||
|
│ └── js/
|
||||||
|
│ └── chart-interop.js
|
||||||
|
├── appsettings.json
|
||||||
|
├── appsettings.Development.json
|
||||||
|
├── Dockerfile
|
||||||
|
├── .dockerignore
|
||||||
|
├── README.md
|
||||||
|
└── certs/
|
||||||
|
└── .gitkeep
|
||||||
|
|
||||||
|
BudgetApp.Data/
|
||||||
|
├── Entities/
|
||||||
|
│ ├── Account.cs
|
||||||
|
│ ├── ApplicationUser.cs
|
||||||
|
│ ├── Category.cs
|
||||||
|
│ ├── RecurrenceType.cs
|
||||||
|
│ ├── Salary.cs
|
||||||
|
│ ├── Transaction.cs
|
||||||
|
│ ├── TransactionType.cs
|
||||||
|
├── Interfaces/
|
||||||
|
│ ├── IAccountRepository.cs
|
||||||
|
│ ├── ICategoryRepository.cs
|
||||||
|
│ ├── ISalaryRepository.cs
|
||||||
|
│ ├── ITransactionRepository.cs
|
||||||
|
├── Repositories/
|
||||||
|
│ ├── AccountRepository.cs
|
||||||
|
│ ├── CategoryRepository.cs
|
||||||
|
│ ├── SalaryRepository.cs
|
||||||
|
│ └── TransactionRepository.cs
|
||||||
|
├── ApplicationDbContext.cs
|
||||||
|
├── Migrations/
|
||||||
|
│ ├── AddCurrencyCodeAndCategoryIcon.cs
|
||||||
|
│ ├── AddCurrencyCodeAndCategoryIcon.Designer.cs
|
||||||
|
│ ├── AddIsDefaultToCategory.cs
|
||||||
|
│ ├── AddIsDefaultToCategory.Designer.cs
|
||||||
|
│ ├── AddIsPaidToTransaction.cs
|
||||||
|
│ ├── AddIsPaidToTransaction.Designer.cs
|
||||||
|
│ ├── AddRecurringTransactions.cs
|
||||||
|
│ ├── AddRecurringTransactions.Designer.cs
|
||||||
|
│ ├── AddSalary.cs
|
||||||
|
│ ├── AddSalary.Designer.cs
|
||||||
|
│ ├── InitialCreate.cs
|
||||||
|
│ ├── InitialCreate.Designer.cs
|
||||||
|
│ └── ApplicationDbContextModelSnapshot.cs
|
||||||
|
|
||||||
BudgetApp.Tests/
|
BudgetApp.Tests/
|
||||||
├── Helpers/ # TestDbContextFactory
|
├── Helpers/
|
||||||
├── Models/ # AccountModelTests
|
│ └── TestDbContextFactory.cs
|
||||||
└── Services/ # AccountService, TransactionService, CategoryService,
|
├── Models/
|
||||||
# DashboardService tests
|
│ └── AccountModelTests.cs
|
||||||
|
├── Services/
|
||||||
|
│ ├── AccountServiceTests.cs
|
||||||
|
│ ├── CategoryServiceTests.cs
|
||||||
|
│ ├── DashboardServiceTests.cs
|
||||||
|
│ └── TransactionServiceTests.cs
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|||||||
Reference in new issue
Block a user