Skip to content

Commit

Permalink
#92: ApiGateway update
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintAngeLs committed Dec 24, 2023
1 parent baeacb8 commit 0cbc747
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions SwiftParcel.API.Gateway/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Use the .NET 6.0 SDK image to build the application
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /app
COPY . .
RUN dotnet publish src/SwiftParcel.API.Gateway -c release -o out

# Use the .NET 6.0 runtime image to run the application
FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /app
COPY --from=build /app/out .
ENV ASPNETCORE_URLS http://*:80
ENV ASPNETCORE_ENVIRONMENT docker
ENTRYPOINT ["dotnet", "SwiftParcel.Services.Customers.Api.dll"]

0 comments on commit 0cbc747

Please sign in to comment.