build(docker): replace envsubst with sed, drop gettext
CI Pipeline / HTML Lint (push) Successful in 7s
Deploy QA / Build and Push (push) Successful in 13s
CI Pipeline / Build Docker Image (push) Failing after 28m28s
CI Pipeline / Security Scan (push) Has been skipped
Deploy QA / Deploy to QA (push) Failing after 1s
CI Pipeline / Generate Summary (push) Failing after 0s
Deploy QA / Notification (push) Failing after 1s

Replace nginx config environment variable substitution from envsubst to sed to eliminate the gettext package dependency, reducing the final container image size. Remove unused export statements from the docker-entrypoint.sh script.
This commit is contained in:
Nicholas Ceballos
2026-06-01 17:25:21 -06:00
parent c52dcda03b
commit cb12d68fbe
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ LABEL org.opencontainers.image.created="${BUILD_DATE}"
LABEL org.opencontainers.image.revision="${GIT_COMMIT}"
LABEL org.opencontainers.image.source="https://git.kubistudio.cloud/kubistudio/cicd-multi-env-pipeline-poc"
RUN apk add --no-cache curl gettext
RUN apk add --no-cache curl
COPY nginx.conf /etc/nginx/nginx.conf
COPY src/ /usr/share/nginx/html/
+4 -4
View File
@@ -21,9 +21,9 @@ window.__ENV__ = {
};
EOF
export APP_ENV APP_VERSION
envsubst '${APP_ENV} ${APP_VERSION}' < /etc/nginx/nginx.conf > /etc/nginx/nginx.conf.tmp
mv /etc/nginx/nginx.conf.tmp /etc/nginx/nginx.conf
sed -i \
-e "s/\${APP_ENV:-development}/${APP_ENV}/g" \
-e "s/\${APP_VERSION:-0.0.0}/${APP_VERSION}/g" \
/etc/nginx/nginx.conf
exec "$@"