Files
nexus/backend/Dockerfile
T
devops 696e9daf4d
CI - Build & Test / Backend (.NET) (push) Has been cancelled
CI - Build & Test / Frontend (Vue/TS) (push) Has been cancelled
CI - Build & Test / Security Check (push) Has been cancelled
chore: add DEPLOY_TIMESTAMP build arg for cache busting
2026-06-22 20:07:43 +02:00

17 lines
410 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build
ARG DEPLOY_TIMESTAMP
WORKDIR /src
COPY Nexus.Api.csproj .
# cache-bust: 2026-06-22T19:56+02
RUN dotnet restore
COPY . .
RUN dotnet publish -c Release -o /app/publish
FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine
WORKDIR /app
COPY --from=build /app/publish .
RUN apk add --no-cache curl
USER $APP_UID
EXPOSE 8080
ENTRYPOINT ["dotnet", "Nexus.Api.dll"]