All my projects is .NET Core SDK 2.2.
I have 4 projects.
TestData TestConsole TestLogic TestData2.
At startup, I'm setting the Console as the start project and each project has references to each other.
What I wonder is where do I create dockerfile and what should I add to the dockerfile?
Here is my dockerfile current:
FROM microsoft/dotnet:sdk AS build-env
WORKDIR /app
# Copy csproj and restore as distinct layers
COPY *.csproj ./
RUN dotnet restore
# Copy everything else and build
COPY . ./
RUN dotnet publish -c Release -o out
# Build runtime image
FROM microsoft/dotnet:aspnetcore-runtime
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "aspnetapp.dll"]
Error:
skipping project
TestData.csproj TestLogic.csproj TestData2.csproj
was not found.