Skip to content

Commit

Permalink
image: load script from command-line argument
Browse files Browse the repository at this point in the history
image: print debug information

image: remove entrypoint by default
  • Loading branch information
takase1121 committed Jun 6, 2024
1 parent 3d23e83 commit a30b429
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ RUN sudo add-apt-repository -y ppa:git-core/ppa && \
# install libdecor
RUN dpkg --force-all -i libdecor-0-dev_0.1.0-3build1_amd64.deb libdecor-0-0_0.1.0-3build1_amd64.deb

SHELL [ "/bin/bash", "--login", "-e", "-o", "pipefail", "-c" ]
ADD entrypoint.sh /
8 changes: 8 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

SCRIPT="$(mktemp)"

printf '#!/bin/bash\n' > "$SCRIPT"
printf '%s' "$*" >> "$SCRIPT"

exec /bin/bash --login -e -o pipefail "$SCRIPT"

0 comments on commit a30b429

Please sign in to comment.