chore(tooling,repo): remove nix flake and add devcontainer

closes #3
This commit is contained in:
cswimr 2025-01-29 17:35:34 +00:00
parent da6b434ed7
commit adf1ab5336
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
7 changed files with 639 additions and 1 deletions

23
Dockerfile Normal file
View file

@ -0,0 +1,23 @@
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 ["myhm-commission.csproj", "./"]
RUN dotnet restore "myhm-commission.csproj"
COPY . .
WORKDIR "/src/"
RUN dotnet build "myhm-commission.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "myhm-commission.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "myhm-commission.dll"]