Skip to content

Commit

Permalink
Start a docker container with an init process.
Browse files Browse the repository at this point in the history
See this comment
krallin/tini#8 (comment) for why
it is a good idea to run tini.
  • Loading branch information
vlulla committed Mar 30, 2023
1 parent c51bb7d commit 9dce041
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LABEL maintainer "Vijay Lulla <vijaylulla@gmail.com>"
RUN <<EOT
apt-get update -qq --yes

apt-get install --yes --auto-remove --no-install-recommends build-essential
apt-get install --yes --auto-remove --no-install-recommends build-essential tini
apt-get install --yes --auto-remove zsh
apt-get install --yes --auto-remove jq git # install packages you need here...

Expand All @@ -23,6 +23,9 @@ adduser --group ${GRP}
adduser --shell /bin/bash --ingroup ${GRP} ${USR}
EOT

## Might resolve timedatectl/systemd issues that I saw in R console on Vertex AI??
ENTRYPOINT ["tini", "--"]

WORKDIR /home/${USR}
USER ${USR}

Expand Down

0 comments on commit 9dce041

Please sign in to comment.