Skip to content

Instantly share code, notes, and snippets.

@cinkagan
Last active January 11, 2021 23:42
Show Gist options
  • Save cinkagan/4f809353524b2ef9f0837bbd6a7ec50d to your computer and use it in GitHub Desktop.
Save cinkagan/4f809353524b2ef9f0837bbd6a7ec50d to your computer and use it in GitHub Desktop.
Asp.Net Core Development Dockerfile
FROM mcr.microsoft.com/dotnet/core/sdk:3.1
ENV DOTNET_USE_POLLING_FILE_WATCHER 1
WORKDIR /app
COPY . .
ENV ASPNETCORE_URLS http://+:5005
EXPOSE 5005
ENTRYPOINT dotnet watch --project Test.WebAPI/Test.WebAPI.csproj run --urls=http://+:5005 // Watch kullanarak herhangi bir değişiklikte otomatik ayağa kalkmasını sağlıyoruz.
// Projeye adını lütfen projenizle değiştirin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment