couchbase / docker

Dockerfiles and configuration scripts for the Docker Hub Official Couchbase images
142 stars 154 forks source link

MB-49155: Update cross-arch Dockerfile.template with best practices #170

Closed ceejatec closed 2 years ago

ceejatec commented 2 years ago

Based on tips from the Docker team, we're now using Go templating to include/exclude chunks of the Dockerfile based on the target distro.

Moved directory organization of runit into runit_build stage, so main stage doesn't need to COPY and then RUN to make changes.

Cleaned up cross-distro PKG_COMMAND invocations to do (or not do) more correct invocations of "update" and "cleanup".

Formatted multi-line && commands consistently and used "set -x" in all cases.