Test Dockerfile
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
a6cb2f9631
commit
565bb5cf1c
@ -1,5 +1,12 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/sdk:6.0
|
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
|
||||||
|
|
||||||
CMD dotnet run --project /server/Server/Server.csproj
|
FROM mcr.microsoft.com/dotnet/runtime:6.0
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=build /app/out .
|
||||||
|
ENTRYPOINT ["dotnet", "Server.dll"]
|
||||||
|
|
||||||
EXPOSE 3131
|
EXPOSE 3131
|
||||||
|
Loading…
Reference in new issue