Sign inSign up

ratuliit42/apidocker

By ratuliit42

•Updated over 8 years ago

.NET Core API with MongoDB

Image
0

283

ratuliit42/apidocker repository overview

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"]

Tag summary

Content type

Image

Digest

Size

572.2 MB

Last updated

over 8 years ago

docker pull ratuliit42/apidocker