Skip to content

docker: use /app as working directory to allow running as non-root user#590

Open
fredericve wants to merge 2 commits into
sipcapture:masterfrom
fredericve:master
Open

docker: use /app as working directory to allow running as non-root user#590
fredericve wants to merge 2 commits into
sipcapture:masterfrom
fredericve:master

Conversation

@fredericve
Copy link
Copy Markdown
Contributor

The title says it all. When running heplify-server in container that does not run as root, heplify-server cannot run because the binary lives in /root/. This fixes that by installing everything in /app

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the container build so heplify-server is installed under /app instead of /root, enabling the image to run correctly when the container is started as a non-root user.

Changes:

  • Switch the runtime WORKDIR from /root/ to /app/ in both Docker build variants.
  • Normalize the multi-stage build alias syntax to AS builder.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
docker/Dockerfile Moves runtime working directory to /app/ so non-root users can execute the copied binary.
docker/dockerfile-arm Same /app/ working directory adjustment for the ARM build variant.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants