Skip to content

Commit 899fb1f

Browse files
authored
hardcode uid/gid (#201)
1 parent 607ccfe commit 899fb1f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
## [0.18.0.dev3] - 2025-12-13
11+
12+
### Changed
13+
- Hardcode UID/GID of 1000 for non-root user in Docker image
14+
1015
## [0.18.0.dev2] - 2025-12-13
1116

1217
### Changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ ENV UV_CACHE_DIR=/uv_cache
4343
ENV TZ=UTC
4444

4545
# Create non-root user and needed directories
46-
RUN groupadd --system hassette \
47-
&& useradd --system --gid hassette --create-home --home-dir /home/hassette hassette \
46+
RUN groupadd --gid 1000 hassette \
47+
&& useradd --uid 1000 --gid 1000 --create-home --home-dir /home/hassette hassette \
4848
&& mkdir -p "$UV_CACHE_DIR" /config /data /apps \
49-
&& chown -R hassette:hassette /home/hassette "$UV_CACHE_DIR" /config /data /apps /app
49+
&& chown -R 1000:1000 /home/hassette "$UV_CACHE_DIR" /config /data /apps /app
5050

5151
COPY --from=uv /uv /bin/uv
5252
COPY --from=builder --chown=hassette:hassette /app /app

0 commit comments

Comments
 (0)