Question

Hello I have a .NET application exported as published I need to put it inside of...

Hello I have a .NET application exported as published I need to put it inside of a Docker continer . I cannot use Visual Studio Code since Im not allowed I know that visul studio has an extension for Docker but I cannot use it . What should I write in the Dockerfile to put this app to work
0 0
Add a comment Improve this question Transcribed image text
Answer #1
  1. Create a Dockerfile in your project folder and add the text below to your Dockerfile.
  2. The Dockerfile assumes that your application is called kapp
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", "kapp.dll"]
Add a comment
Know the answer?
Add Answer to:
Hello I have a .NET application exported as published I need to put it inside of...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Hello, I am struggling with this C# WPF application for one of my classes. I am...

    Hello, I am struggling with this C# WPF application for one of my classes. I am using visual studio to work on it. The description for the problem is as follows: Create an app that can open a text file. Each line of the file contains an arbitrary number of words separated by spaces. Display the count for how many words are in the line and the count how many non-space characters are in the line on the form /...

  • Would you recommend a free tool for exploring compiled .NET assemblies. I need to be able...

    Would you recommend a free tool for exploring compiled .NET assemblies. I need to be able to: Explore the assemblies' source code and visualize the IL to a CLR language of choice (C#, VB.NET, managed C++ and etc.) Support navigation between the classes (via Ctrl + click on the class name for example, or other convenient way). Allow examining the embedded resources in the assembly, if any (text, images etc.) Capable of handling assemblies since .NET version 2.0. Optionally, I...

  • Hi I need some help writing a security code using python mongodb restful api. I just...

    Hi I need some help writing a security code using python mongodb restful api. I just need help on how to provide a security login to user to enter their username and password or to have a block in using extra access once they have logined and they want more access to the databases they will be force to sign out of the server but I just do not know how to start on it can someone show me how...

  • Hello, I have several such problems and I need to know how to do them.

    Hello, I have several such problems and I need to know how to do them. I have vectors formatted as Z=10+j10. I need to get there polar form. I believe the j is imaginary or something like that. The polar form should look like (this is not the answer to the above problem) Z=1.1∠360°. 

  • I need to implement some graph partitioning algorithms for my thesis. I have mostly Windows experience....

    I need to implement some graph partitioning algorithms for my thesis. I have mostly Windows experience. I would like to know if it is hard to migrate c++ console program to Linux. I want to program it on Windows but I want to test and compile it on Linux as well. It will be pure cli application, with no use of windows APi or anything. I just need to use some external libraries. Specifically GNU linear programming kit and GNU...

  • I need to make an application that needs to be highly modular and that can easily...

    I need to make an application that needs to be highly modular and that can easily be expanded with new functionality. I've thought up a design where I have a main window and a list of actions that are implemented using a strategy pattern. I'd like to implement the base classes/interfaces in a DLL and have the option of loading actions from DLL's which are loaded dynamically when the application starts. This way the main window can initiate actions without...

  • We need to create an application which operates in the same way as uber but instead...

    We need to create an application which operates in the same way as uber but instead of ordering a cab people order tow trucks 14) Create an application called Tow Truck. The concept of this application should be similar to that of Uber, but instead of taxis we have tow trucks. That is, people would use this application to call a tow trucks via maps and location. State the program used and write the code (Note: the application should work).

  • Question You: "Hello. I have been waiting for over an hour past my appointment time. I need to go back to my job so...

    Question You: "Hello. I have been waiting for over an hour past my appointment time. I need to go back to my job soon. Can you please let me know when I will be called in to see the doctor?" Front Desk Receptionist: "As you can see, we are very busy and there are a lot of patients that need to be seen today You: "I understand that the doctor is busy and that you have a lot of patients...

  • JavaScript expert, I need your help : My program doesn't work. I have the following program,...

    JavaScript expert, I need your help : My program doesn't work. I have the following program, it is simple web page: Create an object called person with name = John, age = 50. Then, access the object to display "John is 50 years old”. I have written some code here. Hint: Create an object with the var keyword, followed by a name and an "=" sign. Put the properties and values inside the {}; signs Note: Use getElementById() and innerHTML...

  • C# Temperature Converter Application: I have most of the application complete I just need only help...

    C# Temperature Converter Application: I have most of the application complete I just need only help with error messages. My instructor wants me to show four error messages inside an error message label (not a message box) and all of the error messages should appear inside error message label. The four error messages should appear when: 1: User enters data inside both Celsius and fahrenheit text boxes: “You should enter data in only one textbox. Press Clear to start over.”...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT