Skip to content

Commit

Permalink
Fix Dockerfile so linux/arm64 builds correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
aholmes committed Nov 18, 2023
1 parent c3a3418 commit e89a23f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
bin/
obj/
out/
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ ARG TARGETARCH
WORKDIR /app

COPY . ./
RUN dotnet restore -a $TARGETARCH
RUN dotnet restore -a $TARGETARCH hubitat2prom

RUN dotnet publish -a $TARGETARCH --no-restore -c Release -o out
RUN dotnet publish -a $TARGETARCH --no-restore -c Release --property:PublishDir=/app/out hubitat2prom

FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /app
Expand Down

0 comments on commit e89a23f

Please sign in to comment.