💥 Rename Pusher to Ring
This commit is contained in:
27
DysonNetwork.Ring/Dockerfile
Normal file
27
DysonNetwork.Ring/Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 8080
|
||||
EXPOSE 8081
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libkrb5-dev
|
||||
|
||||
USER $APP_UID
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
WORKDIR /src
|
||||
COPY ["DysonNetwork.Ring/DysonNetwork.Ring.csproj", "DysonNetwork.Ring/"]
|
||||
RUN dotnet restore "DysonNetwork.Ring/DysonNetwork.Ring.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/DysonNetwork.Ring"
|
||||
RUN dotnet build "./DysonNetwork.Ring.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
RUN dotnet publish "./DysonNetwork.Ring.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "DysonNetwork.Ring.dll"]
|
Reference in New Issue
Block a user