Skip to content

Commit

Permalink
Add entrypoint script (#15)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Jun 19, 2024
1 parent 6fe845b commit b272161
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ COPY --link roles /ansible/roles

COPY --link files/ansible.cfg /etc/ansible/ansible.cfg
COPY --link files/ara.env /ansible/ara.env

COPY --link files/scripts/* /
COPY --link files/src /src

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
Expand Down Expand Up @@ -125,3 +125,5 @@ FROM python:${PYTHON_VERSION}-slim-bookworm

COPY --link --from=builder / /
USER dragon
WORKDIR /ansible
ENTRYPOINT ["/entrypoint.sh"]
3 changes: 3 additions & 0 deletions files/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

exec /usr/bin/dumb-init -- "$@"

0 comments on commit b272161

Please sign in to comment.