You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
292 B
13 lines
292 B
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
|
WORKDIR /app
|
|
RUN dotnet new console
|
|
COPY server/Server/Program.cs Program.cs
|
|
RUN dotnet publish -c Release -o out
|
|
|
|
FROM mcr.microsoft.com/dotnet/runtime:6.0
|
|
WORKDIR /app
|
|
COPY --from=build /app/out .
|
|
ENTRYPOINT ["dotnet", "app.dll"]
|
|
|
|
EXPOSE 3131
|