Merge pull request #25972 from overleaf/msm-unvendor-envsubst

[git-bridge] Un-vendor `envsubst`

GitOrigin-RevId: 02abdd20aede8b6fd90013f4841ad3375997335c
This commit is contained in:
Miguel Serrano
2025-05-29 10:11:47 +02:00
committed by Copybot
parent 1ea7a6f33f
commit b8816848a0
2 changed files with 9 additions and 3 deletions

View File

@@ -1,11 +1,17 @@
# Dockerfile for git-bridge
# Build the a8m/envsubst binary, as it supports default values,
# which the gnu envsubst (from gettext-base) does not.
FROM golang:1.24.3-alpine AS envsubst_builder
WORKDIR /build
RUN go install github.com/a8m/envsubst/cmd/envsubst@latest
FROM maven:3-amazoncorretto-21-debian AS base
RUN apt-get update && apt-get install -y make git sqlite3 \
&& rm -rf /var/lib/apt/lists
COPY vendor/envsubst /opt/envsubst
COPY --from=envsubst_builder /go/bin/envsubst /opt/envsubst
RUN chmod +x /opt/envsubst
RUN useradd --create-home node
@@ -33,7 +39,7 @@ RUN adduser -D node
COPY --from=builder /git-bridge.jar /
COPY vendor/envsubst /opt/envsubst
COPY --from=envsubst_builder /go/bin/envsubst /opt/envsubst
RUN chmod +x /opt/envsubst
COPY conf/envsubst_template.json envsubst_template.json

Binary file not shown.