From 897b9f179d4dc6992f5d1d069f6915a7d83139b7 Mon Sep 17 00:00:00 2001 From: charith-desilva Date: Wed, 10 Mar 2021 22:40:45 +0530 Subject: [PATCH] fixes for issue #254 & #249 (ENV MAC) --- accounts-api-seed/Dockerfile | 13 +++++++------ accounts-api/src/WebApi/entrypoint.sh | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/accounts-api-seed/Dockerfile b/accounts-api-seed/Dockerfile index 0999291d..dead4788 100644 --- a/accounts-api-seed/Dockerfile +++ b/accounts-api-seed/Dockerfile @@ -1,6 +1,7 @@ -FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS base -RUN dotnet tool update --global dotnet-ef --version 3.1.8 -WORKDIR /src -COPY . . -RUN dotnet restore "src/WebApi/WebApi.csproj" -RUN dotnet build "src/WebApi/WebApi.csproj" --no-restore +FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build + +RUN dotnet tool update --global dotnet-ef --version 5.0.1 +WORKDIR /src +COPY . . +RUN dotnet restore "src/WebApi/WebApi.csproj" +RUN dotnet build "src/WebApi/WebApi.csproj" --no-restore diff --git a/accounts-api/src/WebApi/entrypoint.sh b/accounts-api/src/WebApi/entrypoint.sh index 76d15826..b9271522 100644 --- a/accounts-api/src/WebApi/entrypoint.sh +++ b/accounts-api/src/WebApi/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh cp /https/localhost.crt /usr/local/share/ca-certificates/localhost.crt update-ca-certificates dotnet WebApi.dll