Add configuration server template
This commit is contained in:
parent
1cc69ee7f1
commit
00bde7a283
12 changed files with 272 additions and 0 deletions
21
config/ConfigurationServer/Dockerfile
Normal file
21
config/ConfigurationServer/Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
|
||||
WORKDIR /src
|
||||
COPY ["ConfigurationServer.csproj", ""]
|
||||
RUN dotnet restore "./ConfigurationServer.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/."
|
||||
RUN dotnet build "ConfigurationServer.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "ConfigurationServer.csproj" -c Release -o /app/publish
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "ConfigurationServer.dll"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue