add dockerfile for building data image in the root folder.
This commit is contained in:
Родитель
88bb1eefd2
Коммит
1d428bb737
|
@ -0,0 +1,18 @@
|
|||
FROM microsoft/aspnetcore:2.0 AS base
|
||||
WORKDIR /app
|
||||
|
||||
FROM microsoft/aspnetcore-build:2.0 AS build
|
||||
WORKDIR /src
|
||||
COPY VotingData/VotingData.csproj VotingData/
|
||||
RUN dotnet restore VotingData/VotingData.csproj
|
||||
COPY . .
|
||||
WORKDIR /src/VotingData
|
||||
RUN dotnet build VotingData.csproj -c Release -o /app
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish VotingData.csproj -c Release -o /app
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app .
|
||||
ENTRYPOINT ["dotnet", "VotingData.dll"]
|
|
@ -53,7 +53,7 @@
|
|||
"codePackages": [
|
||||
{
|
||||
"name": "helloWorldCode",
|
||||
"image": "seabreeze/sbz-helloworld:1.0-alpine",
|
||||
"image": "seabreeze/sbz-helloworld:1.1-alpine",
|
||||
"endpoints": [
|
||||
{
|
||||
"name": "helloWorldListener",
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
"codePackages": [
|
||||
{
|
||||
"name": "helloWorldCode",
|
||||
"image": "seabreeze/sbz-helloworld:1.0-windowsservercore-1709",
|
||||
"image": "seabreeze/sbz-helloworld:1.1-windowsservercore-1709",
|
||||
"endpoints": [
|
||||
{
|
||||
"name": "helloWorldListener",
|
||||
|
|
Загрузка…
Ссылка в новой задаче