Compare commits
No commits in common. "437641cb6b722ff2ea75ebe60bb76390b3776c28" and "81ac6fde22ad4a1606a43cb1da9e79a93692db71" have entirely different histories.
437641cb6b
...
81ac6fde22
3 changed files with 0 additions and 55 deletions
|
@ -1,25 +0,0 @@
|
|||
**/.dockerignore
|
||||
**/.env
|
||||
**/.git
|
||||
**/.gitignore
|
||||
**/.project
|
||||
**/.settings
|
||||
**/.toolstarget
|
||||
**/.vs
|
||||
**/.vscode
|
||||
**/.idea
|
||||
**/*.*proj.user
|
||||
**/*.dbmdl
|
||||
**/*.jfm
|
||||
**/azds.yaml
|
||||
**/bin
|
||||
**/charts
|
||||
**/docker-compose*
|
||||
**/Dockerfile*
|
||||
**/node_modules
|
||||
**/npm-debug.log
|
||||
**/obj
|
||||
**/secrets.dev.yaml
|
||||
**/values.dev.yaml
|
||||
LICENSE
|
||||
README.md
|
23
Dockerfile
23
Dockerfile
|
@ -1,23 +0,0 @@
|
|||
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
|
||||
USER $APP_UID
|
||||
WORKDIR /app
|
||||
EXPOSE 8080
|
||||
EXPOSE 8081
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
WORKDIR /src
|
||||
COPY ["PancakesWeb/PancakesWeb.csproj", "PancakesWeb/"]
|
||||
RUN dotnet restore "PancakesWeb/PancakesWeb.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/PancakesWeb"
|
||||
RUN dotnet build "./PancakesWeb.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
RUN dotnet publish "./PancakesWeb.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "PancakesWeb.dll"]
|
|
@ -12,13 +12,6 @@
|
|||
<PackageReference Include="YamlDotNet" Version="16.3.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="BlogPosts\*.md">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="_RemovePublishDirBeforePublishing" BeforeTargets="BeforePublish">
|
||||
<RemoveDir Directories="$(PublishDir)" Condition="'$(PublishDir)' != ''" />
|
||||
</Target>
|
||||
|
|
Loading…
Add table
Reference in a new issue