Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

build(docker): specify user for runner stage (#7641)

Pa1NarKce3f2493d6c0
diff --git a/Dockerfile b/Dockerfile
index 4914e6ad23..b2ad080997 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -72,6 +72,10 @@ RUN mkdir -p ${BIN_DIR}
COPY --from=builder /router/target/release/${BINARY} ${BIN_DIR}/${BINARY}
+# Create the 'app' user and group
+RUN useradd --user-group --system --no-create-home --no-log-init app
+USER app:app
+
WORKDIR ${BIN_DIR}
CMD ./${BINARY}