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:
@@ -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"]
|
||||
Reference in New Issue
Block a user