Draft: gitlab-shell: minimize artifacts
Details
Split to a multi-stage build, where the final stage is based on the
known base image of debian:stretch-slim
.
builder
image now extracts and compiles within /src/gitlab-shell
and then performs a copy of apparent requirements to
/srv/gitlab-shell
before the final image performing
COPY --from=builder /srv/gitlab-shell /srv/gitlab-shell
The require items were chose based on observation, and because there is no explicit documentation within https://gitlab.com/gitlab-org/gitlab-shell regarding the actual requirements for the operation of the program.
Relates to gitlab-org/gitlab-shell#475 (closed)
Relates to gitlab-org/charts/gitlab#2242 (closed)
Notes
image | size (bytes) |
---|---|
gitlab-shell:master |
1132638091 |
gitlab-shell:gitlab-shell-multistage |
198466962 |
DIFF | 934171129 |
Edited by Jason Plum