-
Notifications
You must be signed in to change notification settings - Fork 35
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
Showing
2 changed files
with
4 additions
and
4 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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# Build sources. | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build | ||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build | ||
WORKDIR /src | ||
COPY . ./ | ||
WORKDIR /src/src/Money.Api | ||
RUN dotnet publish -c Release -r linux-x64 -o /app | ||
|
||
# Final image. | ||
FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim | ||
FROM mcr.microsoft.com/dotnet/aspnet:7.0-bullseye-slim | ||
WORKDIR /app | ||
COPY --from=build /app . | ||
ENTRYPOINT ["./Money.Api"] |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# Build sources. | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build | ||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build | ||
WORKDIR /src | ||
COPY . ./ | ||
WORKDIR /src/src/Money.Api | ||
RUN dotnet publish -c Release -r linux-arm -o /app | ||
|
||
# Final image. | ||
FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim-arm32v7 | ||
FROM mcr.microsoft.com/dotnet/aspnet:7.0-bullseye-slim-arm32v7 | ||
WORKDIR /app | ||
COPY --from=build /app . | ||
ENTRYPOINT ["./Money.Api"] |