Skip to content

build(backend): harden Dockerfile with non-root user and HEALTHCHECK - #633

Open
woahwhattheheck wants to merge 3 commits into
Protocol-Guild:mainfrom
woahwhattheheck:type/payd-529-docker
Open

woahwhattheheck wants to merge 3 commits into
Protocol-Guild:mainfrom
woahwhattheheck:type/payd-529-docker

Conversation

@woahwhattheheck

Copy link
Copy Markdown

Closes #529

Keeps the existing multi-stage Alpine build and adds:

  • non-root payd user in the production stage
  • HEALTHCHECK against /health/live
  • npm ci --omit=dev with cache clean for a smaller runtime layer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Docker multi-stage build optimization for backend

1 participant