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