Here is the Dockerfile
FROM microsoft/dotnet:latest
# Copy the files and folders from current directory to "app" directory
COPY . /app
# Set the working directory as "app" directory
WORKDIR /app
# Run the following commands in Linux Terminal to restore .NET Core packages
#RUN ["dotnet", "restore"]
RUN dotnet restore
# Build the application
RUN dotnet publish -c Release -o out /app
RUN ls /app/
RUN ls /app/bin/Release/netcoreapp2.0/
# Expose a port number from the container to outside world
EXPOSE 5000
ENTRYPOINT dotnet /app/bin/Release/netcoreapp2.0/NotebookAppApi.dll
#CMD ["/usr/bin/dotnet", "NotebookAppApi.dll"]
Content type
Image
Digest
Size
572.2 MB
Last updated
over 8 years ago
docker pull ratuliit42/apidocker