Skip to content

Commit

Permalink
feat: entrypoint fully working
Browse files Browse the repository at this point in the history
  • Loading branch information
acrois committed Mar 31, 2024
1 parent 81af99e commit 095def4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ USER 1000:1000
ENV LC_ALL=en_US.UTF-8
# ENV ENV="/home/you/.profile"
# RUN echo ". $HOME/.profile" > /etc/profile
ENTRYPOINT [ "bash", "-l", "-c" ]
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]

WORKDIR /home/you/scripts/

Expand Down
7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# Concatenate all arguments into a single string
CMD="$*"

# Execute the command string in a login shell
exec bash -l -c "$CMD"

0 comments on commit 095def4

Please sign in to comment.