Skip to content
Snippets Groups Projects
Commit a4d04952 authored by gabor's avatar gabor
Browse files

Add Dockerfile

parent 0c61ff69
No related branches found
No related tags found
No related merge requests found
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
USER $APP_UID
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["Rendelosch/Rendelosch.csproj", "Rendelosch/"]
RUN dotnet restore "Rendelosch/Rendelosch.csproj"
COPY . .
WORKDIR "/src/Rendelosch"
RUN dotnet build "Rendelosch.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "Rendelosch.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Rendelosch.dll"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment