mise en forme pour débuter le projet
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
0f917e0f73
commit
0f94d28253
@ -1,26 +0,0 @@
|
||||
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
||||
|
||||
#Depending on the operating system of the host machines(s) that will build or run the containers, the image specified in the FROM statement may need to be changed.
|
||||
#For more information, please see https://aka.ms/containercompat
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||
WORKDIR /src
|
||||
COPY ["nuget.config", "."]
|
||||
COPY ["BlazorApp1/BlazorApp1.csproj", "BlazorApp1/"]
|
||||
RUN dotnet restore "BlazorApp1/BlazorApp1.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/BlazorApp1"
|
||||
RUN dotnet build "BlazorApp1.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "BlazorApp1.csproj" -c Release -o /app/publish
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "BlazorApp1.dll"]
|
@ -1,18 +0,0 @@
|
||||
@page "/counter"
|
||||
|
||||
<PageTitle>Counter</PageTitle>
|
||||
|
||||
<h1>Counter</h1>
|
||||
|
||||
<p role="status">Current count: @currentCount</p>
|
||||
|
||||
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
|
||||
|
||||
@code {
|
||||
private int currentCount = 0;
|
||||
|
||||
private void IncrementCount()
|
||||
{
|
||||
currentCount=currentCount+8000;
|
||||
}
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
@page "/episodes"
|
||||
@layout DoctorWhoLayout
|
||||
|
||||
<h2>Episodes</h2>
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://www.bbc.co.uk/programmes/p00vfknq">
|
||||
<em>The Ribos Operation</em>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.bbc.co.uk/programmes/p00vfdsb">
|
||||
<em>The Sun Makers</em>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.bbc.co.uk/programmes/p00vhc26">
|
||||
<em>Nightmare of Eden</em>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
@ -1,48 +0,0 @@
|
||||
@page "/fetchdata"
|
||||
|
||||
<PageTitle>Weather forecast</PageTitle>
|
||||
|
||||
@using BlazorApp1.Data
|
||||
@inject WeatherForecastService ForecastService
|
||||
|
||||
<h1>Weather forecast</h1>
|
||||
|
||||
<p>This component demonstrates fetching data from a service.</p>
|
||||
|
||||
@if (forecasts == null)
|
||||
{
|
||||
<p><em>Loading...</em></p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Temp. (C)</th>
|
||||
<th>Temp. (F)</th>
|
||||
<th>Summary</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var forecast in forecasts)
|
||||
{
|
||||
<tr>
|
||||
<td>@forecast.Date.ToShortDateString()</td>
|
||||
<td>@forecast.TemperatureC</td>
|
||||
<td>@forecast.TemperatureF</td>
|
||||
<td>@forecast.Summary</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
|
||||
@code {
|
||||
private WeatherForecast[]? forecasts;
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
forecasts = await ForecastService.GetForecastAsync(DateTime.Now);
|
||||
}
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
@inherits LayoutComponentBase
|
||||
@layout MainLayout
|
||||
|
||||
<header>
|
||||
<h1>Doctor Who™ Episode Database</h1>
|
||||
</header>
|
||||
|
||||
<nav>
|
||||
<a href="masterlist">Master Episode List</a>
|
||||
<a href="search">Search</a>
|
||||
<a href="new">Add Episode</a>
|
||||
</nav>
|
||||
|
||||
@Body
|
||||
|
||||
<footer>
|
||||
@TrademarkMessage
|
||||
</footer>
|
||||
|
||||
@code {
|
||||
public string TrademarkMessage { get; set; } =
|
||||
"Doctor Who is a registered trademark of the BBC. " +
|
||||
"https://www.doctorwho.tv/";
|
||||
}
|
Loading…
Reference in new issue