Skip to content

Commit

Permalink
Merge pull request #27 from SaintAngeLs/blazor_identity_pipeline
Browse files Browse the repository at this point in the history
Web appsetting for apigateway configuration update #19
  • Loading branch information
SaintAngeLs authored Mar 17, 2024
2 parents 16a1d90 + 9dabab3 commit e97b07e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 8 deletions.
Empty file modified MiniSpace.APIGateway/scripts/dockerize-tag-push.sh
100644 → 100755
Empty file.
Empty file modified MiniSpace.Services.Identity/scripts/dockerize-tag-push.sh
100644 → 100755
Empty file.
22 changes: 16 additions & 6 deletions MiniSpace.Web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
# Use the .NET 6 SDK for building the project
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /app

# Copy everything and publish the release
COPY . .
RUN dotnet publish src/MiniSpace.Web -c release -o out
RUN dotnet publish src/MiniSpace.Web -c Release -o out

FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
# Use the .NET 6 runtime for the final image
FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /app

# Copy the published app from the build stage
COPY --from=build /app/out .
ENV ASPNETCORE_URLS http://*:80
ENV ASPNETCORE_ENVIRONMENT docker
ENTRYPOINT dotnet MiniSpace.Web.dll

# Set environment variables
ENV ASPNETCORE_URLS=http://*:80
ENV ASPNETCORE_ENVIRONMENT=docker

# Start the application
ENTRYPOINT ["dotnet", "MiniSpace.Web.dll"]
Empty file modified MiniSpace.Web/scripts/dockerize-tag-push.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion MiniSpace.Web/src/MiniSpace.Web/MiniSpace.Web.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>


Expand Down
2 changes: 1 addition & 1 deletion MiniSpace.Web/src/MiniSpace.Web/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"AllowedHosts": "*",
"HttpClientOptions": {
"ApiUrl": "http://localhost:5000",
"ApiUrl": "http://api-gateway",
"Retries": 3
},
"Services": {
Expand Down
Empty file modified MiniSpace/scripts/dockerize-all.sh
100644 → 100755
Empty file.

0 comments on commit e97b07e

Please sign in to comment.