Merge pull request 'Added stream redirection to dotnet commands' (#57) from garages3 into main
Reviewed-on: #57
This commit was merged in pull request #57.
This commit is contained in:
@@ -21,13 +21,13 @@ RUN dotnet restore "PostFundManagement.Api/PostFundManagement.Api.csproj"
|
||||
# Copy full source tree
|
||||
COPY . .
|
||||
|
||||
# Build the API project
|
||||
RUN dotnet build "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
# Force build output to stderr (1>&2) so the deployment platform captures compilation errors
|
||||
RUN dotnet build "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build 1>&2
|
||||
|
||||
# Publish stage
|
||||
FROM build AS publish
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
RUN dotnet publish "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||
RUN dotnet publish "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false 1>&2
|
||||
|
||||
# Final runtime stage
|
||||
FROM base AS final
|
||||
|
||||
+18
-17
@@ -53,20 +53,21 @@ services:
|
||||
|
||||
# Redis overrides
|
||||
- ConnectionStrings__Redis=${REDIS_CONNECTION_STRING:-192.168.1.171:6379,ssl=false,abortConnect=false}
|
||||
# pfm-console:
|
||||
# image: pfm-console
|
||||
# build:
|
||||
# context: ./PostFundManagement.ConsoleUI
|
||||
# dockerfile: Dockerfile
|
||||
# container_name: pfm-console
|
||||
# ports:
|
||||
# - "8076:3000"
|
||||
# environment:
|
||||
# # OIDC Identity Provider Configuration
|
||||
# - OIDC_AUTHORITY=${OIDC_AUTHORITY:-https://}
|
||||
# - OIDC_AUDIENCE=${OIDC_AUDIENCE:-aud}
|
||||
# - OIDC_CLIENT_ID=${OIDC_CLIENT_ID:-clientid}
|
||||
# - OIDC_CLIENT_SECRET=${OIDC_CLIENT_SECRET:-yoursecret}
|
||||
# # Backend API Configuration
|
||||
# - API_BASE_URL=${API_BASE_URL:-https://api.ifri.khongisa.co.za/}
|
||||
# restart: unless-stopped
|
||||
restart: unless-stopped
|
||||
pfm-console:
|
||||
image: pfm-console
|
||||
build:
|
||||
context: ./PostFundManagement.ConsoleUI
|
||||
dockerfile: Dockerfile
|
||||
container_name: pfm-console
|
||||
ports:
|
||||
- "8076:3000"
|
||||
environment:
|
||||
# OIDC Identity Provider Configuration
|
||||
- OIDC_AUTHORITY=${OIDC_AUTHORITY:-https://}
|
||||
- OIDC_AUDIENCE=${OIDC_AUDIENCE:-aud}
|
||||
- OIDC_CLIENT_ID=${OIDC_CLIENT_ID:-clientid}
|
||||
- OIDC_CLIENT_SECRET=${OIDC_CLIENT_SECRET:-yoursecret}
|
||||
# Backend API Configuration
|
||||
- API_BASE_URL=${API_BASE_URL:-https://api.ifri.khongisa.co.za/}
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user