Companion code sample for my blog post - Containerising a Blazor Server App
Read the full blog post at https://chrissainty.com/containerising-blazor-applications-with-docker-containerising-a-blazor-server-app/.
Companion code sample for my blog post - Containerising a Blazor Server App
License: MIT License
Companion code sample for my blog post - Containerising a Blazor Server App
Read the full blog post at https://chrissainty.com/containerising-blazor-applications-with-docker-containerising-a-blazor-server-app/.
Hi Thanks for your blog post here
Ive encountered an error following your recipe. Building your dockerfile as a container, with BlazorServerWithDocker.csproj, in the local host directory results in:
root@vps765527:/docker/stacks/blazor# docker build -t blazor-server .
Sending build context to Docker daemon 4.608kB
Step 1/16 : FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
... [skipping build steps]
Step 10/16 : RUN dotnet build "BlazorServerWithDocker.csproj" -c Release -o /app/build
---> Running in f7daf9f97877
Microsoft (R) Build Engine version 17.2.0+41abc5629 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
All projects are up-to-date for restore.
CSC : error CS5001: Program does not contain a static 'Main' method suitable for an entry point [/src/BlazorServerWithDocker.csproj]
Build FAILED.
CSC : error CS5001: Program does not contain a static 'Main' method suitable for an entry point [/src/BlazorServerWithDocker.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:05.21
The command '/bin/sh -c dotnet build "BlazorServerWithDocker.csproj" -c Release -o /app/build' returned a non-zero code: 1
Any help or advice is very much appreciated
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.