tesses-cms/Dockerfile

14 lines
339 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY . .
WORKDIR /src/Tesses.CMS.Server
RUN dotnet publish -c Release -o /app
FROM mcr.microsoft.com/dotnet/runtime:8.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"]