From 0ed67b6b97874c3b3ff0c6cd4456d8dcdcd7fa2c Mon Sep 17 00:00:00 2001 From: gigirassy Date: Fri, 19 Jun 2026 18:48:29 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2acfb0d..72e7d23 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,10 +17,12 @@ RUN case "$TARGETARCH" in \ --root /out \ --target "$cargo_target" -FROM kgrv/mini:tn +FROM scratch -COPY --from=build --chown=mini:mini /out/bin/the-pit /the-pit +USER 60000:60000 + +COPY --from=build --chown=60000:60000 /out/bin/the-pit /the-pit ENV TARPIT_BIND=0.0.0.0:22 -ENTRYPOINT ["tini", "--", "/the-pit"] \ No newline at end of file +ENTRYPOINT [""/the-pit"] \ No newline at end of file