Changed from C# based system to own C++ implementation using crow.
This commit is contained in:
24
Dockerfile
24
Dockerfile
@@ -1,24 +0,0 @@
|
||||
# Use the official ASP.NET Core runtime as a parent image
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 5000 5001
|
||||
ENV ASPNETCORE_URLS=https://*:5001;http://*:5000
|
||||
|
||||
# Use the SDK image to build the app
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
WORKDIR /src
|
||||
COPY ["douwco.be.csproj", "./"]
|
||||
RUN dotnet restore "./douwco.be.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/."
|
||||
RUN dotnet build "douwco.be.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "douwco.be.csproj" -c Release -o /app/publish
|
||||
|
||||
# Use the runtime image to run the app
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
COPY ["./certificate.pfx", "/app/certificate.pfx"]
|
||||
ENTRYPOINT ["dotnet", "douwco.be.dll"]
|
||||
Reference in New Issue
Block a user