From 8daf50e53e8489ae7c9c5fe1ad5fc47914281c07 Mon Sep 17 00:00:00 2001 From: Bogdan-Hasanov <47710368+Bogdan-Hasanov@users.noreply.github.com> Date: Wed, 17 Mar 2021 12:05:03 +0200 Subject: [PATCH] Updated dockerfile --- OutOfSchool/OutOfSchool.IdentityServer/Dockerfile | 10 +++++----- docker-compose.yml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Dockerfile b/OutOfSchool/OutOfSchool.IdentityServer/Dockerfile index b2a3fe786a..5767485694 100644 --- a/OutOfSchool/OutOfSchool.IdentityServer/Dockerfile +++ b/OutOfSchool/OutOfSchool.IdentityServer/Dockerfile @@ -16,20 +16,20 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* WORKDIR /OoS-Backend -COPY ./OutOfSchool/IdentityServer/*.csproj ./IdentityServer/ +COPY ./OutOfSchool/OutOfSchool.IdentityServer/*.csproj ./OutOfSchool.IdentityServer/ COPY ./OutOfSchool/OutOfSchool.DataAccess/*.csproj ./OutOfSchool.DataAccess/ -RUN dotnet restore ./IdentityServer/OutOfSchool.IdentityServer.csproj +RUN dotnet restore ./OutOfSchool.IdentityServer/OutOfSchool.IdentityServer.csproj -COPY ./OutOfSchool/IdentityServer/ ./IdentityServer/ +COPY ./OutOfSchool/OutOfSchool.IdentityServer/ ./OutOfSchool.IdentityServer/ COPY ./OutOfSchool/OutOfSchool.DataAccess/ ./OutOfSchool.DataAccess/ -RUN dotnet build ./IdentityServer/OutOfSchool.IdentityServer.csproj -c $Configuration -o /app +RUN dotnet build ./OutOfSchool.IdentityServer/OutOfSchool.IdentityServer.csproj -c $Configuration -o /app FROM builder AS publish ARG Configuration=Release -RUN dotnet publish ./IdentityServer/OutOfSchool.IdentityServer.csproj -c $Configuration -o /app +RUN dotnet publish ./OutOfSchool.IdentityServer/OutOfSchool.IdentityServer.csproj -c $Configuration -o /app FROM base AS final WORKDIR /app diff --git a/docker-compose.yml b/docker-compose.yml index a28990ef6c..901aaf6b77 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: identity-server: build: context: . - dockerfile: OutOfSchool/IdentityServer/Dockerfile + dockerfile: OutOfSchool/OutOfSchool.IdentityServer/Dockerfile environment: ConnectionStrings__DefaultConnection: "Server=sql-server; Database=Master;User Id=SA;Password=Oos-password1;" depends_on: