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

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

SanchithHegde merged 4 commits into main from dockerfile-add-user
pixincreate
pixincreate17 days ago (edited 16 days ago)

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

This PR modifies the Dockerfile to specify the user at runner stage.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

From the security perspective, it is better to be a user rather than being a root.
Closes #7643

How did you test it?

build succeeded (tested by making a debug build):

image

podman build \
    --load \
    --file Dockerfile \
    --build-arg "BINARY=router" \
    --tag hyperswitch-router \
    .

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible
pixincreate build(docker): specify user for runner stage
e37e371b
pixincreate pixincreate added A-infra
pixincreate pixincreate added S-waiting-on-review
pixincreate pixincreate added this to the March 2025 Release milestone 17 days ago
pixincreate pixincreate requested a review from SanchithHegde SanchithHegde 17 days ago
pixincreate pixincreate assigned pixincreate pixincreate 17 days ago
semanticdiff-com
semanticdiff-com17 days ago

Review changes with  SemanticDiff

pixincreate pixincreate marked this pull request as ready for review 16 days ago
pixincreate pixincreate requested a review 16 days ago
pixincreate pixincreate requested a review from Chethan-rao Chethan-rao 16 days ago
pixincreate pixincreate force pushed from 4c46d598 to 33a9fa9e 16 days ago
pixincreate fix: change user after moving binary
c8afc721
pixincreate pixincreate force pushed from 33a9fa9e to c8afc721 16 days ago
pixincreate pixincreate force pushed from 5b01c871 to 5e68f3c7 16 days ago
pixincreate pixincreate force pushed from 5e68f3c7 to 3b079979 16 days ago
pixincreate refactor: do not create system group
1ceb3598
pixincreate pixincreate force pushed from 3b079979 to 1ceb3598 16 days ago
SanchithHegde chore(docker): remove extra blank line
f7a7cd1a
SanchithHegde
SanchithHegde approved these changes on 2025-03-26
ShankarSinghC
ShankarSinghC approved these changes on 2025-03-27
SanchithHegde SanchithHegde removed S-waiting-on-review
SanchithHegde SanchithHegde merged ce3f2493 into main 16 days ago
SanchithHegde SanchithHegde deleted the dockerfile-add-user branch 16 days ago

Login to write a write a comment.

Login via GitHub

Assignees
Labels
Milestone