Skip to content

Commit 59d9b8e

Browse files
committed
chore(base): add init-stack
1 parent d43159a commit 59d9b8e

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
ARG BASE_LAYER
22
FROM ${BASE_LAYER}
3-
ENV PATH "/opt/drycc/*/bin:/opt/drycc/*/sbin:$PATH"
3+
4+
ENTRYPOINT ["init-stack"]

bullseye/rootfs/usr/bin/init-stack

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
for profile in $(find /opt/drycc/*/profile.d/* 2>/dev/null)
3+
do
4+
. $profile
5+
done
6+
7+
if [[ "$$" == "1" ]] ; then
8+
exec tini -g -- "$@"
9+
else
10+
exec tini -sg -- "$@"
11+
fi

mkimage.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ rootfs_chroot() {
3636

3737
# Add some tools we need.
3838
rootfs_chroot apt-get install -y --no-install-recommends \
39+
tini \
3940
curl \
4041
netbase \
4142
ca-certificates

0 commit comments

Comments
 (0)