Git Product home page Git Product logo

chrissainty / blazorserverwithdocker Goto Github PK

View Code? Open in Web Editor NEW
19.0 3.0 13.0 319 KB

Companion code sample for my blog post - Containerising a Blazor Server App

Home Page: https://chrissainty.com/containerising-blazor-applications-with-docker-containerising-a-blazor-server-app/

License: MIT License

HTML 50.58% C# 15.75% CSS 33.67%
blazor blazor-server docker dockerfile aspnetcore asp-net-core

blazorserverwithdocker's Introduction

blazorserverwithdocker's People

Contributors

chrissainty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

blazorserverwithdocker's Issues

Program does not contain a static 'Main' method suitable for an entry point [/src/BlazorServerWithDocker.csproj]

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.