Merge pull request 'Added ebug code to docker fiiles' (#13) from setup into master
Reviewed-on: #13
This commit was merged in pull request #13.
This commit is contained in:
@@ -9,7 +9,11 @@ WORKDIR /app_source
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN --network=host dotnet restore "LiteCharmsSecurity.sln"
|
RUN --network=host dotnet restore "LiteCharmsSecurity.sln" --verbosity normal > /tmp/restore_error.log 2>&1 || true
|
||||||
|
|
||||||
|
RUN cat /tmp/restore_error.log
|
||||||
|
|
||||||
|
RUN if grep -q "error" /tmp/restore_error.log; then exit 1; fi
|
||||||
|
|
||||||
WORKDIR "/app_source/src/LiteCharmsSecurity.Admin.Api"
|
WORKDIR "/app_source/src/LiteCharmsSecurity.Admin.Api"
|
||||||
RUN dotnet build "LiteCharmsSecurity.Admin.Api.csproj" -c Release -o /app/build
|
RUN dotnet build "LiteCharmsSecurity.Admin.Api.csproj" -c Release -o /app/build
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 \
|
|||||||
NUGET_XMLDOC_MODE=skip
|
NUGET_XMLDOC_MODE=skip
|
||||||
WORKDIR /app_source
|
WORKDIR /app_source
|
||||||
|
|
||||||
# Pull in the node runtimes for UI asset bundling
|
|
||||||
COPY --from=node /usr/local/bin/node /usr/local/bin/node
|
COPY --from=node /usr/local/bin/node /usr/local/bin/node
|
||||||
COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
|
COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
|
||||||
RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
|
RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
|
||||||
@@ -19,7 +18,11 @@ RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN --network=host dotnet restore "LiteCharmsSecurity.sln"
|
RUN --network=host dotnet restore "LiteCharmsSecurity.sln" --verbosity normal > /tmp/restore_error.log 2>&1 || true
|
||||||
|
|
||||||
|
RUN cat /tmp/restore_error.log
|
||||||
|
|
||||||
|
RUN if grep -q "error" /tmp/restore_error.log; then exit 1; fi
|
||||||
|
|
||||||
WORKDIR "/app_source/src/LiteCharmsSecurity.Admin"
|
WORKDIR "/app_source/src/LiteCharmsSecurity.Admin"
|
||||||
RUN dotnet build "LiteCharmsSecurity.Admin.csproj" -c Release -o /app/build
|
RUN dotnet build "LiteCharmsSecurity.Admin.csproj" -c Release -o /app/build
|
||||||
|
|||||||
@@ -7,13 +7,14 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
WORKDIR /app_source
|
WORKDIR /app_source
|
||||||
|
|
||||||
# Copy everything from repository root into /app_source
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Restore the solution from the root context
|
RUN --network=host dotnet restore "LiteCharmsSecurity.sln" --verbosity normal > /tmp/restore_error.log 2>&1 || true
|
||||||
RUN --network=host dotnet restore "LiteCharmsSecurity.sln"
|
|
||||||
|
RUN cat /tmp/restore_error.log
|
||||||
|
|
||||||
|
RUN if grep -q "error" /tmp/restore_error.log; then exit 1; fi
|
||||||
|
|
||||||
# Paths match your repository exactly now: src/ is just under the root
|
|
||||||
WORKDIR "/app_source/src/LiteCharmsSecurity.STS.Identity"
|
WORKDIR "/app_source/src/LiteCharmsSecurity.STS.Identity"
|
||||||
RUN dotnet build "LiteCharmsSecurity.STS.Identity.csproj" -c Release -o /app/build
|
RUN dotnet build "LiteCharmsSecurity.STS.Identity.csproj" -c Release -o /app/build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user