1
0
mirror of https://github.com/XFox111/MuiCharts.git synced 2026-04-22 06:51:05 +03:00

Updated docker files for devcontainers and backend build

This commit is contained in:
2024-02-22 14:56:48 +00:00
parent af7d4e0ec9
commit f399b38010
4 changed files with 548 additions and 10 deletions
+26
View File
@@ -0,0 +1,26 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 as build
WORKDIR /app
COPY ./MuiCharts.sln ./
COPY ./MuiCharts.Domain/*.csproj MuiCharts.Domain/
COPY ./MuiCharts.Contracts/*.csproj MuiCharts.Contracts/
COPY ./MuiCharts.Infrastructure/*.csproj MuiCharts.Infrastructure/
COPY ./MuiCharts.Api/*.csproj MuiCharts.Api/
RUN dotnet restore
COPY . ./
RUN dotnet publish --configuration Release -o out MuiCharts.Api/MuiCharts.Api.csproj
FROM mcr.microsoft.com/dotnet/aspnet:8.0 as runtime
WORKDIR /app
COPY --from=build /app/out ./
ENV HTTP_PORTS=80
EXPOSE 80
ENTRYPOINT ["dotnet", "MuiCharts.Api.dll"]