Added stream redirection to dotnet commands #57
@@ -21,13 +21,13 @@ RUN dotnet restore "PostFundManagement.Api/PostFundManagement.Api.csproj"
|
|||||||
# Copy full source tree
|
# Copy full source tree
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the API project
|
# 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
|
RUN dotnet build "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build 1>&2
|
||||||
|
|
||||||
# Publish stage
|
# Publish stage
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
ARG BUILD_CONFIGURATION=Release
|
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
|
# Final runtime stage
|
||||||
FROM base AS final
|
FROM base AS final
|
||||||
|
|||||||
+18
-17
@@ -53,20 +53,21 @@ services:
|
|||||||
|
|
||||||
# Redis overrides
|
# Redis overrides
|
||||||
- ConnectionStrings__Redis=${REDIS_CONNECTION_STRING:-192.168.1.171:6379,ssl=false,abortConnect=false}
|
- ConnectionStrings__Redis=${REDIS_CONNECTION_STRING:-192.168.1.171:6379,ssl=false,abortConnect=false}
|
||||||
# pfm-console:
|
restart: unless-stopped
|
||||||
# image: pfm-console
|
pfm-console:
|
||||||
# build:
|
image: pfm-console
|
||||||
# context: ./PostFundManagement.ConsoleUI
|
build:
|
||||||
# dockerfile: Dockerfile
|
context: ./PostFundManagement.ConsoleUI
|
||||||
# container_name: pfm-console
|
dockerfile: Dockerfile
|
||||||
# ports:
|
container_name: pfm-console
|
||||||
# - "8076:3000"
|
ports:
|
||||||
# environment:
|
- "8076:3000"
|
||||||
# # OIDC Identity Provider Configuration
|
environment:
|
||||||
# - OIDC_AUTHORITY=${OIDC_AUTHORITY:-https://}
|
# OIDC Identity Provider Configuration
|
||||||
# - OIDC_AUDIENCE=${OIDC_AUDIENCE:-aud}
|
- OIDC_AUTHORITY=${OIDC_AUTHORITY:-https://}
|
||||||
# - OIDC_CLIENT_ID=${OIDC_CLIENT_ID:-clientid}
|
- OIDC_AUDIENCE=${OIDC_AUDIENCE:-aud}
|
||||||
# - OIDC_CLIENT_SECRET=${OIDC_CLIENT_SECRET:-yoursecret}
|
- OIDC_CLIENT_ID=${OIDC_CLIENT_ID:-clientid}
|
||||||
# # Backend API Configuration
|
- OIDC_CLIENT_SECRET=${OIDC_CLIENT_SECRET:-yoursecret}
|
||||||
# - API_BASE_URL=${API_BASE_URL:-https://api.ifri.khongisa.co.za/}
|
# Backend API Configuration
|
||||||
# restart: unless-stopped
|
- API_BASE_URL=${API_BASE_URL:-https://api.ifri.khongisa.co.za/}
|
||||||
|
restart: unless-stopped
|
||||||
Reference in New Issue
Block a user