-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e03f7bf
commit 9f987f9
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.Services.Orders.Api/SwiftParcel.Services.Orders.Api -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.Orders.Api.dll"] |