You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
my application has been built using mcr.microsoft.com/dotnet/core docker image. Now we are planning to use mono instead of dotnet to make it cross platform compatible.
It would be great if someone can help me with example(Dockerfile) or redirect to resource which I can refer to perform this migration.
Current Dockerfile
`FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build
WORKDIR /app
COPY *.csproj ./aspnetapp/
WORKDIR /app/aspnetapp
RUN dotnet restore
WORKDIR /app
COPY . ./aspnetapp/
WORKDIR /app/aspnetapp
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS runtime
WORKDIR /app
COPY --from=build /app/aspnetapp/out ./
ENTRYPOINT ["dotnet", "Sample.dll"]`
The text was updated successfully, but these errors were encountered:
iceagebuck
changed the title
migrate from dotnet core docker base image to mono docker base image
migrate from mcr.microsoft.com/dotnet/core docker base image to mono:latest docker base image
Jun 18, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
my application has been built using mcr.microsoft.com/dotnet/core docker image. Now we are planning to use mono instead of dotnet to make it cross platform compatible.
It would be great if someone can help me with example(Dockerfile) or redirect to resource which I can refer to perform this migration.
Current Dockerfile
`FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build
WORKDIR /app
COPY *.csproj ./aspnetapp/
WORKDIR /app/aspnetapp
RUN dotnet restore
WORKDIR /app
COPY . ./aspnetapp/
WORKDIR /app/aspnetapp
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS runtime
WORKDIR /app
COPY --from=build /app/aspnetapp/out ./
ENTRYPOINT ["dotnet", "Sample.dll"]`
The text was updated successfully, but these errors were encountered: