diff --git a/Dockerfile b/Dockerfile
index 2a460ee410ef40f233ce42b2dc175db83c90bc07..e3438d7286dc43be366a636ea5b0e702934db8e9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,15 +1,14 @@
-FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.6.1 AS xx
-FROM --platform=$BUILDPLATFORM golang:1.24.1 AS build
-ARG TARGETPLATFORM
-COPY --from=xx / /
+FROM golang:1.24.1-alpine AS build
+RUN apk add --no-cache --update gcc g++
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY ./ ./
-RUN CGO_ENABLED=0 GOOS=linux xx-go build -ldflags "-w -s" -o /firehouse-smokedetection
+RUN CGO_ENABLED=1 GOOS=linux go build -ldflags "-w -s" -o /firehouse-smokedetection .
-FROM jonasled.dev/infra/images/scratch-rootless@sha256:b29ee9170c65f2825d77f1c8d97c6ae138f76fb3a150454eb6eb87e7767fba4b
+FROM alpine:3.21.3
ENV GIN_MODE=release \
EXIT_ON_DISCONNECT=true
COPY --from=build /firehouse-smokedetection /firehouse-smokedetection
+RUN mkdir /plugins
ENTRYPOINT ["/firehouse-smokedetection"]