зеркало из
1
0
Форкнуть 0

add dockerfile for building data image in the root folder.

This commit is contained in:
Vipul Modi 2018-05-03 23:29:14 -07:00
Родитель 88bb1eefd2
Коммит 1d428bb737
3 изменённых файлов: 20 добавлений и 2 удалений

Просмотреть файл

@ -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",