BringTYTDBack/Dockerfile

13 lines
308 B
Docker
Raw Normal View History

2024-10-19 05:17:43 +00:00
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ADD . /src
WORKDIR /src
RUN dotnet publish -c Release -o /out
FROM mcr.microsoft.com/dotnet/runtime:8.0
EXPOSE 3252
COPY --from=build /out /out
COPY --from=build /src/wwwroot /out/wwwroot
WORKDIR /out
CMD ["/out/BringTYTDBack"]
RUN chmod +x /out/BringTYTDBack