-
-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (15 loc) · 573 Bytes
/
Copy pathDockerfile
File metadata and controls
20 lines (15 loc) · 573 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Runtime-only image — uses pre-built binaries from CI, no compilation.
# Build context must contain:
# bin/tirith — the pre-built binary for the target platform
# shell/ — shell hook scripts
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& useradd --create-home --user-group tirith
COPY bin/tirith /usr/local/bin/tirith
COPY shell /usr/share/tirith/shell
RUN chmod +x /usr/local/bin/tirith
USER tirith
ENTRYPOINT ["tirith"]
CMD ["--help"]