Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
LordMike committed Aug 19, 2023
1 parent eff3522 commit 287b1dd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 38 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# https://hub.docker.com/_/microsoft-dotnet-runtime
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
COPY . .
WORKDIR "/src/MBW.BlueRiiot2MQTT/"
RUN dotnet publish -c release -o /app
# Final
FROM mcr.microsoft.com/dotnet/runtime:7.0-jammy-arm64v8
WORKDIR /app
COPY --from=build /app .
# https://hub.docker.com/_/microsoft-dotnet-runtime
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src

COPY . .
WORKDIR "/src/MBW.BlueRiiot2MQTT/"
RUN dotnet publish -c release -o /app

# Final
FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/runtime:7.0-alpine
WORKDIR /app
COPY --from=build /app .
ENTRYPOINT ["dotnet", "MBW.BlueRiiot2MQTT.dll"]
13 changes: 0 additions & 13 deletions MBW.BlueRiiot2MQTT/Dockerfile.amd64

This file was deleted.

13 changes: 0 additions & 13 deletions MBW.BlueRiiot2MQTT/Dockerfile.armv7

This file was deleted.

0 comments on commit 287b1dd

Please sign in to comment.