2023-12-29 04:19:18 +03:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
2024-07-02 23:24:00 +03:00
|
|
|
LABEL company="Winsomnia"
|
|
|
|
LABEL maintainer.name="Wesser" maintainer.email="support@winsomnia.net"
|
2023-12-29 04:19:18 +03:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . .
|
|
|
|
|
2024-07-02 23:24:00 +03:00
|
|
|
ARG NUGET_USERNAME
|
|
|
|
ARG NUGET_PASSWORD
|
|
|
|
ENV NUGET_USERNAME=$NUGET_USERNAME
|
|
|
|
ENV NUGET_PASSWORD=$NUGET_PASSWORD
|
|
|
|
|
|
|
|
RUN dotnet restore ./Backend.sln --configfile nuget.config
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /src
|
|
|
|
RUN dotnet publish ./Endpoint/Endpoint.csproj -c Release -o /app
|
2023-12-29 04:19:18 +03:00
|
|
|
|
|
|
|
FROM base AS final
|
|
|
|
WORKDIR /app
|
2024-07-02 23:24:00 +03:00
|
|
|
COPY --from=build /app .
|
2024-07-03 10:10:58 +03:00
|
|
|
ENTRYPOINT ["dotnet", "Mirea.Api.Endpoint.dll"]
|