JellyGlass/Dockerfile

28 lines
No EOL
496 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:9.0 AS dotnet_build
WORKDIR /App
COPY ./backend/src ./
RUN dotnet restore
RUN dotnet publish -c Release -o out
FROM node:25.6.1-bookworm AS react_build
WORKDIR /App
COPY ./frontend ./
RUN npm ci
RUN npm run build
FROM mcr.microsoft.com/dotnet/aspnet:9.0
WORKDIR /App
EXPOSE 5000
EXPOSE 5001
COPY --from=dotnet_build /App/out .
COPY --from=react_build /App/dist ./wwwroot
ENV ASPNETCORE_URLS=http://+:5000
ENTRYPOINT ["dotnet", "JellyGlass-Backend.dll"]