Files
Automatic-Parking/Source/ProofOfConcept/Dockerfile
Szakáts Alpár Zsolt 043f504cdd Proof Of Concept initial
Adds initial files for a proof-of-concept project, including Dockerfile, .gitignore, project files, and MQTT-related services.

This commit sets up the basic structure and configuration for exploring and validating the core concepts of the project.
2025-08-06 15:40:48 +02:00

24 lines
726 B
Docker

FROM mcr.microsoft.com/dotnet/aspnet:10.0-preview AS base
USER $APP_UID
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
FROM mcr.microsoft.com/dotnet/sdk:10.0-preview AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["ProofOfConcept/ProofOfConcept.csproj", "ProofOfConcept/"]
RUN dotnet restore "ProofOfConcept/ProofOfConcept.csproj"
COPY . .
WORKDIR "/src/ProofOfConcept"
RUN dotnet build "./ProofOfConcept.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./ProofOfConcept.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "ProofOfConcept.dll"]