diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-08-08 11:07:43 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-08-09 08:42:34 -0400 |
| commit | b140e22e2e4e0bb47eea39485a5501497462023a (patch) | |
| tree | 803abe469c025de2d6177e7b842a47182f92ee45 /ci/docker/bionic | |
| parent | e65229ee972c113413eeca77853213352129bd47 (diff) | |
| download | libgit2-ethomson/dockerfile.tar.gz | |
ci: remove the docker entrypointethomson/dockerfile
Omitting an entrypoint.sh to configure the container and instead
depending on docker primitives allows us to be more portable. (If a
distribution uses a different mechanism for adding users, we need not
have multiple entrypoint.sh files or invariants within it; instead we
can configure that in the dockerfile itself along with all the other
distribution specific components.)
Diffstat (limited to 'ci/docker/bionic')
| -rw-r--r-- | ci/docker/bionic | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ci/docker/bionic b/ci/docker/bionic index 85bb6ecae..fb6a34b1c 100644 --- a/ci/docker/bionic +++ b/ci/docker/bionic @@ -36,9 +36,8 @@ RUN cd /tmp && \ cd .. && \ rm -rf mbedtls-2.16.2 -FROM mbedtls AS configure -COPY entrypoint.sh /usr/local/bin/entrypoint.sh -RUN chmod a+x /usr/local/bin/entrypoint.sh -RUN mkdir /var/run/sshd +FROM mbedtls AS adduser +RUN useradd --shell /bin/bash libgit2 --create-home -ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] +FROM adduser AS configure +RUN mkdir /var/run/sshd |
