Skip to content

Commit

Permalink
#338 - Update dockerfiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed May 12, 2021
1 parent c17e669 commit ba0865b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile.api-buster-slim
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Build sources.
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
FROM mcr.microsoft.com/dotnet/sdk:5.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/core/aspnet:3.1-buster-slim
FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim
WORKDIR /app
COPY --from=build /app .
ENTRYPOINT ["./Money.Api"]
4 changes: 2 additions & 2 deletions docker/Dockerfile.api-stretch-slim-arm32v7
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Build sources.
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
FROM mcr.microsoft.com/dotnet/sdk:5.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/core/aspnet:3.1-buster-slim-arm32v7
FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim-arm32v7
WORKDIR /app
COPY --from=build /app .
ENTRYPOINT ["./Money.Api"]

0 comments on commit ba0865b

Please sign in to comment.