tesses-cms/Dockerfile

14 lines
339 B
Docker
Raw Normal View History

2024-01-04 02:53:13 +00:00
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
COPY . .
WORKDIR /src/Tesses.CMS.Server
RUN dotnet publish -c Release -o /app
FROM mcr.microsoft.com/dotnet/runtime:7.0 AS runner
RUN apt update && apt install -y ffmpeg
WORKDIR /app
COPY --from=build /app .
EXPOSE 62444
ENTRYPOINT ["dotnet", "Tesses.CMS.Server.dll", "/data"]