Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated dockerfile #73

Merged
merged 1 commit into from
Mar 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions OutOfSchool/OutOfSchool.IdentityServer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down