aboutsummaryrefslogtreecommitdiff
path: root/Containerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Containerfile')
-rw-r--r--Containerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Containerfile b/Containerfile
index 3f52aef..17ff724 100644
--- a/Containerfile
+++ b/Containerfile
@@ -17,8 +17,10 @@ COPY . .
RUN CGO_ENABLED=0 go build -trimpath -o /out/fluxrec .
FROM alpine:3.21
+# uid 1000 = the first local user on a typical host, so a bind-mounted
+# /data and files scp'd into it have one owner on both sides.
RUN apk add --no-cache tzdata \
- && adduser -D fluxrec \
+ && adduser -D -u 1000 fluxrec \
&& mkdir -p /data && chown fluxrec:fluxrec /data
USER fluxrec
COPY --from=build /out/fluxrec /usr/local/bin/fluxrec