Closed yezz123 closed 4 years ago
@odedshimon Hey!
I was asking u one time about the different between WireShark
& BruteShark
and after that i try a method to build image of WireShark
on docker and that work!
Soo what u think about build an image of your project using docker
:
.NetCore
& .NET Framework
also the environment of work about using docker on windows and build the image that called Dockerize an ASP.NET Core application
You can start by seen this one dotnet-docker to know how to start using it and then u will be able to create your application image :
Dockerfile
in your project folder.Dockerfile
for either Linux or Windows Containers. The tags below are multi-arch meaning they pull either Windows or Linux containers depending on what mode is set in Docker Desktop for Windows. Read more on switching containers.Dockerfile
assumes that your application is called aspnetapp
. Change the Dockerfile
to use the DLL
file of your project.
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
WORKDIR /app
COPY *.csproj ./ RUN dotnet restore
COPY . ./ RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 WORKDIR /app COPY --from=build-env /app/out . ENTRYPOINT ["dotnet", "aspnetapp.dll"]
- To make your build context as small as possible add a [`.dockerignore`
file](/engine/reference/builder/#dockerignore-file)
to your project folder and copy the following into it.
```dockerignore
bin/
obj/
$ docker build -t aspnetapp .
$ docker run -d -p 8080:80 --name myapp aspnetapp
And this is stay just a suggestion to make this project more powerful and Thank you! 🙏
hi @yezz123,
I didn't really understood the purpose of this Pull-Request, this is a feature branch with my commits, which I didn't finished to check...
Regard to the Docker image, since Windows does not support any GUI with Windows containers I don't think it will be useful..
Oded.
is this vers of develop will be with more updates and new stuff ?