mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 19:58:14 +08:00
feat:fix kube config
This commit is contained in:
15
samples/OelotKube/DownstreamService/Dockerfile.develop
Normal file
15
samples/OelotKube/DownstreamService/Dockerfile.develop
Normal file
@ -0,0 +1,15 @@
|
||||
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", "--"]
|
Reference in New Issue
Block a user