diff --git a/.dockerignore b/.dockerignore index cd42ee3..e76c073 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,3 @@ bin/ obj/ +out/ diff --git a/Dockerfile b/Dockerfile index 0073bcb..5293fdf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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