mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-28 13:52:51 +08:00

* Upgrade Projects * Push to trigger builds * Tried Thread Sleep before deleting file * FileDeleteTryCatch * Updated from AspnetCore All to App * Travis version Upgrade (.net core 2.2) * dotnet 2.2.105
15 lines
528 B
Docker
15 lines
528 B
Docker
FROM microsoft/dotnet:2.1-sdk
|
|
ARG BUILD_CONFIGURATION=Debug
|
|
ENV ASPNETCORE_ENVIRONMENT=Development
|
|
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
|
|
EXPOSE 80
|
|
|
|
WORKDIR /src
|
|
COPY ["DownstreamService/DownstreamService.csproj", "DownstreamService/"]
|
|
|
|
RUN dotnet restore "DownstreamService/DownstreamService.csproj"
|
|
COPY . .
|
|
WORKDIR "/src/DownstreamService"
|
|
RUN dotnet build --no-restore "DownstreamService.csproj" -c $BUILD_CONFIGURATION
|
|
|
|
ENTRYPOINT ["dotnet", "run", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"] |