Configured for docker container

This commit is contained in:
Fishandchips321 2026-02-23 14:58:42 +00:00
parent 226caf4c1e
commit 8e92077490
7 changed files with 51 additions and 4 deletions

View file

@ -0,0 +1,28 @@
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"]