CodeLiturgy.Dashboard/BlueWest.Api/Dockerfile

25 lines
645 B
Docker
Raw Normal View History

FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
#EXPOSE 80
#EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["BlueWest.Api/BlueWest.Api.csproj", "BlueWest.Api/"]
COPY [".", "."]
RUN dotnet restore "BlueWest.Api/BlueWest.Api.csproj"
RUN dotnet build "BlueWest.Api/BlueWest.Api.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "BlueWest.Api/BlueWest.Api.csproj" -c Release -o /app/publish --self-contained false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
2022-08-13 20:15:43 +03:00
ENV ASPNETCORE_URLS http://0.0.0.0:80
WORKDIR /app
ENTRYPOINT ["dotnet", "BlueWest.Api.dll" ]