2023-06-20 23:15:56 +02:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:7.0 as build-env
|
|
|
|
WORKDIR /src
|
2023-07-31 00:31:19 +02:00
|
|
|
COPY Tranga /src/Tranga
|
|
|
|
COPY Logging /src/Logging
|
|
|
|
COPY Tranga.sln /src
|
|
|
|
RUN dotnet restore /src/Tranga/Tranga.csproj
|
2023-06-20 23:15:56 +02:00
|
|
|
RUN dotnet publish -c Release -o /publish
|
|
|
|
|
2023-06-20 23:26:49 +02:00
|
|
|
FROM glax/tranga-base:latest as runtime
|
2023-06-20 23:15:56 +02:00
|
|
|
WORKDIR /publish
|
|
|
|
COPY --from=build-env /publish .
|
|
|
|
EXPOSE 6531
|
2023-07-31 00:36:56 +02:00
|
|
|
ENTRYPOINT ["dotnet", "/publish/Tranga.dll"]
|