Some checks failed
CI Pipeline / Code Quality & Typecheck (push) Waiting to run
CI Pipeline / Test Suite (macos-latest) (push) Blocked by required conditions
CI Pipeline / Test Suite (ubuntu-latest) (push) Blocked by required conditions
CI Pipeline / Test Suite (windows-latest) (push) Blocked by required conditions
CI Pipeline / Build Validation (admin) (push) Blocked by required conditions
CI Pipeline / Build Validation (desktop) (push) Blocked by required conditions
Deploy Landing Page / deploy (push) Blocked by required conditions
Deploy Landing Page / build (push) Waiting to run
Release & Packaging Pipeline / Build & Publish Admin Docker Image (push) Failing after 8s
Release & Code Signing CA Pipeline / build-and-sign-windows (push) Failing after 1m51s
Build macOS / Build & Package (macOS) (push) Failing after 4s
Build macOS / Build & Package (macOS)-1 (push) Failing after 5s
Release & Code Signing CA Pipeline / build-and-sign-macos (push) Failing after 3s
Release & Packaging Pipeline / Package macOS Desktop App (push) Failing after 4s
Release & Packaging Pipeline / Package Windows Desktop App (push) Failing after 2m28s
Release & Packaging Pipeline / Publish Official GitHub Release (push) Has been skipped
27 lines
609 B
Docker
27 lines
609 B
Docker
# Multi-stage Docker build for D3RO Voice C# .NET API Backend & BackOffice
|
|
FROM mcr.microsoft.com/dotnet/sdk:10.0-preview AS build
|
|
WORKDIR /src
|
|
|
|
COPY D3ROVoice.Api.csproj ./
|
|
RUN dotnet restore
|
|
|
|
COPY . ./
|
|
RUN dotnet publish -c Release -o /app/out
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0-preview AS runtime
|
|
WORKDIR /app
|
|
|
|
# Create persistent storage directory for SQLite database
|
|
RUN mkdir -p /app/data
|
|
|
|
COPY --from=build /app/out ./
|
|
|
|
EXPOSE 5000
|
|
ENV ASPNETCORE_URLS=http://+:5000
|
|
ENV ASPNETCORE_ENVIRONMENT=Production
|
|
ENV DATA_DIR=/app/data
|
|
|
|
VOLUME ["/app/data"]
|
|
|
|
ENTRYPOINT ["dotnet", "D3ROVoice.Api.dll"]
|
|
|