Configured for docker container
This commit is contained in:
parent
226caf4c1e
commit
8e92077490
7 changed files with 51 additions and 4 deletions
28
Dockerfile
28
Dockerfile
|
|
@ -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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue